on xenial help sign in
Add a mouse area to the indicators panel so we can open them by clicking.

The proper solution depends on designs we don't have yet. This should get us going with enabling mouse events without regressing for now. Fixes: #1417650 Approved by: Daniel d'Andrada, PS Jenkins bot

commitb6ca55363d7eab3e449e46de4bb084d56642b841 authorMichael Zanetti <michael.zanetti@canonical.com> dateWed 18 Mar 2015, 10:17 (12 years ago) parent2cd65540202105
1 file changed+15
qml/Panel/IndicatorsMenu.qml+15
qml/Panel/IndicatorsMenu.qml+15
@@ -162,6 +162,15 @@ Showable {
162162 onScroll: bar.addScrollOffset(scrollAmount);
163163 }
164164
165+ MouseArea {
166+ anchors.fill: __showDragHandle
167+ enabled: __showDragHandle.enabled
168+ onClicked: {
169+ bar.selectItemAt(mouseX)
170+ root.show()
171+ }
172+ }
173+
165174 DragHandle {
166175 id: __showDragHandle
167176 anchors.bottom: parent.bottom
@@ -182,6 +191,12 @@ Showable {
182191 hintDisplacement: enableHint ? expandedPanelHeight - minimizedPanelHeight + handle.height : 0
183192 }
184193
194+ MouseArea {
195+ anchors.fill: __hideDragHandle
196+ enabled: __hideDragHandle.enabled
197+ onClicked: root.hide()
198+ }
199+
185200 DragHandle {
186201 id: __hideDragHandle
187202 anchors.fill: handle