Changeset View
Changeset View
Standalone View
Standalone View
applets/systemtray/package/contents/ui/HiddenItemsView.qml
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Line(s) | 29 | MouseArea { | |||
---|---|---|---|---|---|
71 | 71 | | |||
72 | Connections { | 72 | Connections { | ||
73 | target: hiddenTasksColumn.model | 73 | target: hiddenTasksColumn.model | ||
74 | // hiddenTasksColumn.count is not updated when ListView is hidden and is not rendered | 74 | // hiddenTasksColumn.count is not updated when ListView is hidden and is not rendered | ||
75 | // manually update itemCount so that expander arrow hides/shows itself correctly | 75 | // manually update itemCount so that expander arrow hides/shows itself correctly | ||
76 | onModelReset: hiddenTasksColumn.itemCount = hiddenTasksColumn.model.rowCount() | 76 | onModelReset: hiddenTasksColumn.itemCount = hiddenTasksColumn.model.rowCount() | ||
77 | onRowsInserted: hiddenTasksColumn.itemCount = hiddenTasksColumn.model.rowCount() | 77 | onRowsInserted: hiddenTasksColumn.itemCount = hiddenTasksColumn.model.rowCount() | ||
78 | onRowsRemoved: hiddenTasksColumn.itemCount = hiddenTasksColumn.model.rowCount() | 78 | onRowsRemoved: hiddenTasksColumn.itemCount = hiddenTasksColumn.model.rowCount() | ||
79 | onLayoutChanged: hiddenTasksColumn.itemCount = hiddenTasksColumn.model.rowCount() | 79 | function onLayoutChanged() { hiddenTasksColumn.itemCount = hiddenTasksColumn.model.rowCount() } | ||
80 | } | 80 | } | ||
81 | 81 | | |||
82 | PlasmaComponents.Highlight { | 82 | PlasmaComponents.Highlight { | ||
83 | id: highlight | 83 | id: highlight | ||
84 | visible: false | 84 | visible: false | ||
85 | } | 85 | } | ||
86 | 86 | | |||
87 | CurrentItemHighLight { | 87 | CurrentItemHighLight { | ||
88 | readonly property bool hiddenAppletActivated: root.activeApplet && root.activeApplet.parent && root.activeApplet.parent.inHiddenLayout | 88 | readonly property bool hiddenAppletActivated: root.activeApplet && root.activeApplet.parent && root.activeApplet.parent.inHiddenLayout | ||
89 | parent: hiddenAppletActivated ? root.activeApplet.parent : hiddenTasksColumn.contentItem | 89 | parent: hiddenAppletActivated ? root.activeApplet.parent : hiddenTasksColumn.contentItem | ||
90 | target: hiddenAppletActivated ? root.activeApplet.parent : null | 90 | target: hiddenAppletActivated ? root.activeApplet.parent : null | ||
91 | location: LayoutMirroring.enabled ? PlasmaCore.Types.RightEdge : PlasmaCore.Types.LeftEdge | 91 | location: LayoutMirroring.enabled ? PlasmaCore.Types.RightEdge : PlasmaCore.Types.LeftEdge | ||
92 | } | 92 | } | ||
93 | } | 93 | } |