on xenial help sign in
Add a button to toggle visibility
93e654dAlbert Astals
tests/qmltests/Dash/tst_Card.qml+13
@@ -186,6 +186,19 @@ Rectangle {
186 height: units.gu(4)
186 height: units.gu(4)
187 color: "orange"
187 color: "orange"
188 }
188 }
189+
190+ Rectangle {
191+ color: "red"
192+ anchors { left: parent.left; right: parent.right }
193+ height: units.gu(4)
194+ Label {
195+ text: "Toggle Visible"
196+ }
197+ MouseArea {
198+ anchors.fill: parent
199+ onClicked: loader.visible = !loader.visible
200+ }
201+ }
189 }
202 }
190 }
203 }
191
204