on xenial help sign in
Add a button to toggle visibility
commit93e654d5bc9d4838746eb0a4053fb5e7713e5466 authorAlbert Astals <albert.astals@canonical.com> dateTue 14 Oct 2014, 17:44 (12 years ago) parent74a27ee
1 file changed+13
tests/qmltests/Dash/tst_Card.qml+13
tests/qmltests/Dash/tst_Card.qml+13
@@ -186,6 +186,19 @@ Rectangle {
186186 height: units.gu(4)
187187 color: "orange"
188188 }
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+ }
189202 }
190203 }
191204