Changeset View
Changeset View
Standalone View
Standalone View
applets/systemtray/package/contents/ui/HiddenItemsView.qml
Show All 21 Lines | |||||
22 | import org.kde.plasma.core 2.0 as PlasmaCore | 22 | import org.kde.plasma.core 2.0 as PlasmaCore | ||
23 | import org.kde.plasma.components 2.0 as PlasmaComponents | 23 | import org.kde.plasma.components 2.0 as PlasmaComponents | ||
24 | import org.kde.plasma.extras 2.0 as PlasmaExtras | 24 | import org.kde.plasma.extras 2.0 as PlasmaExtras | ||
25 | 25 | | |||
26 | 26 | | |||
27 | PlasmaExtras.ScrollArea { | 27 | PlasmaExtras.ScrollArea { | ||
28 | id: hiddenTasksView | 28 | id: hiddenTasksView | ||
29 | 29 | | |||
30 | visible: !activeApplet || activeApplet.parent.parent == hiddenTasksColumn | 30 | visible: !root.activeApplet || (root.activeApplet.parent && root.activeApplet.parent.inHiddenLayout) | ||
31 | width: activeApplet ? iconColumnWidth : parent.width | 31 | implicitWidth: root.activeApplet ? iconColumnWidth : parent.width | ||
32 | property alias layout: hiddenTasksColumn | 32 | property alias layout: hiddenTasksColumn | ||
33 | //Useful to align stuff to the column of icons, both in expanded and shrink modes | 33 | //Useful to align stuff to the column of icons, both in expanded and shrink modes | ||
34 | property int iconColumnWidth: root.hiddenItemSize + highlight.marginHints.left + highlight.marginHints.right | 34 | property int iconColumnWidth: root.hiddenItemSize + highlight.marginHints.left + highlight.marginHints.right | ||
35 | horizontalScrollBarPolicy: Qt.ScrollBarAlwaysOff | 35 | horizontalScrollBarPolicy: Qt.ScrollBarAlwaysOff | ||
36 | verticalScrollBarPolicy: activeApplet ? Qt.ScrollBarAlwaysOff : Qt.ScrollBarAsNeeded | 36 | verticalScrollBarPolicy: activeApplet ? Qt.ScrollBarAlwaysOff : Qt.ScrollBarAsNeeded | ||
37 | 37 | | |||
38 | Flickable { | 38 | Flickable { | ||
39 | contentWidth: width | 39 | contentWidth: width | ||
Show All 19 Lines | 42 | MouseArea { | |||
59 | } | 59 | } | ||
60 | 60 | | |||
61 | Column { | 61 | Column { | ||
62 | id: hiddenTasksColumn | 62 | id: hiddenTasksColumn | ||
63 | 63 | | |||
64 | spacing: units.smallSpacing | 64 | spacing: units.smallSpacing | ||
65 | width: parent.width | 65 | width: parent.width | ||
66 | property Item hoveredItem | 66 | property Item hoveredItem | ||
67 | property alias marginHints: highlight.marginHints | 67 | readonly property int iconItemHeight: root.hiddenItemSize + highlight.marginHints.top + highlight.marginHints.bottom | ||
68 | | ||||
69 | objectName: "hiddenTasksColumn" | | |||
70 | } | 68 | } | ||
71 | } | 69 | } | ||
72 | } | 70 | } | ||
73 | } | 71 | } |