on xenial help sign in
Added button for Show/Hide Call
commit4d0b12ddc73b9d1e7198ab9ebaf1b85fe8bd89d8 authorNick Dedekind <nick.dedekind@canonical.com> dateWed 16 Mar 2016, 16:55 (11 years ago) parent3e177c0
1 file changed+13−1
tests/qmltests/tst_Shell.qml+13−1
tests/qmltests/tst_Shell.qml+13−1
@@ -141,8 +141,10 @@ Rectangle {
141141 anchors { left: parent.left; right: parent.right; top: parent.top; margins: units.gu(1) }
142142 spacing: units.gu(1)
143143
144− Row {
144+ Flow {
145145 spacing: units.gu(1)
146+ anchors { left: parent.left; right: parent.right }
147+
146148 Button {
147149 text: "Show Greeter"
148150 activeFocusOnPress: false
@@ -169,6 +171,16 @@ Rectangle {
169171 }
170172 }
171173 }
174+ Button {
175+ text: callManager.foregroundCall ? "Hide Call" : "Show Call"
176+ activeFocusOnPress: false
177+ onClicked: {
178+ if (shellLoader.status !== Loader.Ready)
179+ return;
180+
181+ callManager.foregroundCall = callManager.foregroundCall ? null : phoneCall;
182+ }
183+ }
172184 }
173185 ListItem.ItemSelector {
174186 anchors { left: parent.left; right: parent.right }