Commit a9cc8508 authored by Konrad Materka's avatar Konrad Materka
Browse files

[applets/systemtray] Remove unneeded SNI roles

SystemTray model copies are SNI roles from DataEngine, but some of them
are redundant and useless.
parent 8f3f6627
......@@ -251,15 +251,11 @@ QHash<int, QByteArray> StatusNotifierModel::roleNames() const
roles.insert(static_cast<int>(Role::Icon), QByteArrayLiteral("Icon"));
roles.insert(static_cast<int>(Role::IconName), QByteArrayLiteral("IconName"));
roles.insert(static_cast<int>(Role::IconThemePath), QByteArrayLiteral("IconThemePath"));
roles.insert(static_cast<int>(Role::IconsChanged), QByteArrayLiteral("IconsChanged"));
roles.insert(static_cast<int>(Role::Id), QByteArrayLiteral("Id"));
roles.insert(static_cast<int>(Role::ItemIsMenu), QByteArrayLiteral("ItemIsMenu"));
roles.insert(static_cast<int>(Role::OverlayIconName), QByteArrayLiteral("OverlayIconName"));
roles.insert(static_cast<int>(Role::Status), QByteArrayLiteral("Status"));
roles.insert(static_cast<int>(Role::StatusChanged), QByteArrayLiteral("StatusChanged"));
roles.insert(static_cast<int>(Role::Title), QByteArrayLiteral("Title"));
roles.insert(static_cast<int>(Role::TitleChanged), QByteArrayLiteral("TitleChanged"));
roles.insert(static_cast<int>(Role::ToolTipChanged), QByteArrayLiteral("ToolTipChanged"));
roles.insert(static_cast<int>(Role::ToolTipSubTitle), QByteArrayLiteral("ToolTipSubTitle"));
roles.insert(static_cast<int>(Role::ToolTipTitle), QByteArrayLiteral("ToolTipTitle"));
roles.insert(static_cast<int>(Role::WindowId), QByteArrayLiteral("WindowId"));
......@@ -349,15 +345,11 @@ void StatusNotifierModel::dataUpdated(const QString &sourceName, const Plasma::D
updateItemData(dataItem, data, Role::Category);
updateItemData(dataItem, data, Role::IconName);
updateItemData(dataItem, data, Role::IconThemePath);
updateItemData(dataItem, data, Role::IconsChanged);
updateItemData(dataItem, data, Role::Id);
updateItemData(dataItem, data, Role::ItemIsMenu);
updateItemData(dataItem, data, Role::OverlayIconName);
updateItemData(dataItem, data, Role::Status);
updateItemData(dataItem, data, Role::StatusChanged);
updateItemData(dataItem, data, Role::Title);
updateItemData(dataItem, data, Role::TitleChanged);
updateItemData(dataItem, data, Role::ToolTipChanged);
updateItemData(dataItem, data, Role::ToolTipSubTitle);
updateItemData(dataItem, data, Role::ToolTipTitle);
updateItemData(dataItem, data, Role::WindowId);
......
......@@ -95,15 +95,11 @@ public:
Icon,
IconName,
IconThemePath,
IconsChanged,
Id,
ItemIsMenu,
OverlayIconName,
Status,
StatusChanged,
Title,
TitleChanged,
ToolTipChanged,
ToolTipSubTitle,
ToolTipTitle,
WindowId
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment