Changeset View
Changeset View
Standalone View
Standalone View
applets/systemtray/package/contents/ui/ExpanderArrow.qml
Show All 22 Lines | |||||
23 | import org.kde.plasma.core 2.0 as PlasmaCore | 23 | import org.kde.plasma.core 2.0 as PlasmaCore | ||
24 | 24 | | |||
25 | PlasmaCore.ToolTipArea { | 25 | PlasmaCore.ToolTipArea { | ||
26 | id: tooltip | 26 | id: tooltip | ||
27 | 27 | | |||
28 | property bool vertical: plasmoid.formFactor === PlasmaCore.Types.Vertical | 28 | property bool vertical: plasmoid.formFactor === PlasmaCore.Types.Vertical | ||
29 | implicitWidth: units.iconSizes.smallMedium | 29 | implicitWidth: units.iconSizes.smallMedium | ||
30 | implicitHeight: implicitWidth | 30 | implicitHeight: implicitWidth | ||
31 | visible: root.hiddenLayout.contentItem.children.length > 0 | 31 | visible: root.hiddenLayout.count > 0 | ||
kmaterka: This fixes issue (regression) with expander arrow not hiding when all items are visible. | |||||
32 | 32 | | |||
33 | subText: root.expanded ? i18n("Close popup") : i18n("Show hidden icons") | 33 | subText: root.expanded ? i18n("Close popup") : i18n("Show hidden icons") | ||
34 | 34 | | |||
35 | MouseArea { | 35 | MouseArea { | ||
36 | id: arrowMouseArea | 36 | id: arrowMouseArea | ||
37 | anchors.fill: parent | 37 | anchors.fill: parent | ||
38 | onClicked: root.expanded = !root.expanded | 38 | onClicked: root.expanded = !root.expanded | ||
39 | 39 | | |||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |
This fixes issue (regression) with expander arrow not hiding when all items are visible. Probably I should create separate commit...