Commit bf81b755 authored by Konrad Materka's avatar Konrad Materka Committed by Nate Graham
Browse files

[applets/systemtray] Remove dead code

This code is no longer used.
parent f4d46cd8
......@@ -30,11 +30,7 @@ import "items"
MouseArea {
id: hiddenTasksView
visible: !root.activeApplet || (root.activeApplet.parent && root.activeApplet.parent.inHiddenLayout)
implicitWidth: root.activeApplet ? iconColumnWidth : parent.width
property alias layout: hiddenTasks
//Useful to align stuff to the column of icons, both in expanded and shrink modes
property int iconColumnWidth: root.hiddenItemSize + highlight.marginHints.left + highlight.marginHints.right
hoverEnabled: true
onExited: hiddenTasks.currentIndex = -1
......@@ -60,7 +56,6 @@ MouseArea {
highlight: PlasmaComponents.Highlight {}
highlightMoveDuration: 0
readonly property int iconItemHeight: root.hiddenItemSize + highlight.marginHints.top + highlight.marginHints.bottom
property int itemCount: model.rowCount()
model: PlasmaCore.SortFilterModel {
......@@ -83,9 +78,4 @@ MouseArea {
onRowsRemoved: hiddenTasks.itemCount = hiddenTasks.model.rowCount()
onLayoutChanged: hiddenTasks.itemCount = hiddenTasks.model.rowCount()
}
PlasmaComponents.Highlight {
id: highlight
visible: false
}
}
......@@ -51,10 +51,8 @@ MouseArea {
return baseSize + Math.round(units.smallSpacing/2);
}
}
property int hiddenItemSize: units.iconSizes.smallMedium
property alias expanded: dialog.visible
property Item activeApplet
property int status: dialog.visible ? PlasmaCore.Types.RequiresAttentionStatus : PlasmaCore.Types.PassiveStatus
property alias visibleLayout: tasksGrid
property alias hiddenLayout: expandedRepresentation.hiddenLayout
......
......@@ -208,25 +208,6 @@ void SystemTray::showPlasmoidMenu(QQuickItem *appletInterface, int x, int y)
desktopMenu->popup(pos.toPoint());
}
QString SystemTray::plasmoidCategory(QQuickItem *appletInterface) const
{
if (!appletInterface) {
return QStringLiteral("UnknownCategory");
}
Plasma::Applet *applet = appletInterface->property("_plasma_applet").value<Plasma::Applet*>();
if (!applet || !applet->pluginMetaData().isValid()) {
return QStringLiteral("UnknownCategory");
}
const QString cat = applet->pluginMetaData().value(QStringLiteral("X-Plasma-NotificationAreaCategory"));
if (cat.isEmpty()) {
return QStringLiteral("UnknownCategory");
}
return cat;
}
void SystemTray::showStatusNotifierContextMenu(KJob *job, QQuickItem *statusNotifierIcon)
{
if (QCoreApplication::closingDown() || !statusNotifierIcon) {
......
......@@ -74,12 +74,6 @@ public:
*/
Q_INVOKABLE void showPlasmoidMenu(QQuickItem *appletInterface, int x, int y);
/**
* Returns the "X-Plasma-NotificationAreaCategory"
* of the plasmoid metadata
*/
Q_INVOKABLE QString plasmoidCategory(QQuickItem *appletInterface) const;
/**
* Shows the context menu for a statusnotifieritem
*/
......
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