on xenial help sign in
quick'n'dirty way to open/close the indicators via mouse
0202105Michael Zanetti
qml/Panel/IndicatorsMenu.qml+15
@@ -162,6 +162,15 @@ Showable {
162 onScroll: bar.addScrollOffset(scrollAmount);
162 onScroll: bar.addScrollOffset(scrollAmount);
163 }
163 }
164
164
165+ MouseArea {
166+ anchors.fill: __showDragHandle
167+ enabled: __showDragHandle.enabled
168+ onClicked: {
169+ bar.selectItemAt(mouseX)
170+ root.show()
171+ }
172+ }
173+
165 DragHandle {
174 DragHandle {
166 id: __showDragHandle
175 id: __showDragHandle
167 anchors.bottom: parent.bottom
176 anchors.bottom: parent.bottom
@@ -182,6 +191,12 @@ Showable {
182 hintDisplacement: enableHint ? expandedPanelHeight - minimizedPanelHeight + handle.height : 0
191 hintDisplacement: enableHint ? expandedPanelHeight - minimizedPanelHeight + handle.height : 0
183 }
192 }
184
193
194+ MouseArea {
195+ anchors.fill: __hideDragHandle
196+ enabled: __hideDragHandle.enabled
197+ onClicked: root.hide()
198+ }
199+
185 DragHandle {
200 DragHandle {
186 id: __hideDragHandle
201 id: __hideDragHandle
187 anchors.fill: handle
202 anchors.fill: handle