on xenial help sign in
Added button for Show/Hide Call
4d0b12dNick Dedekind
tests/qmltests/tst_Shell.qml+13−1
@@ -141,8 +141,10 @@ Rectangle {
141 anchors { left: parent.left; right: parent.right; top: parent.top; margins: units.gu(1) }
141 anchors { left: parent.left; right: parent.right; top: parent.top; margins: units.gu(1) }
142 spacing: units.gu(1)
142 spacing: units.gu(1)
143
143
144− Row {
144+ Flow {
145 spacing: units.gu(1)
145 spacing: units.gu(1)
146+ anchors { left: parent.left; right: parent.right }
147+
146 Button {
148 Button {
147 text: "Show Greeter"
149 text: "Show Greeter"
148 activeFocusOnPress: false
150 activeFocusOnPress: false
@@ -169,6 +171,16 @@ Rectangle {
169 }
171 }
170 }
172 }
171 }
173 }
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+ }
172 }
184 }
173 ListItem.ItemSelector {
185 ListItem.ItemSelector {
174 anchors { left: parent.left; right: parent.right }
186 anchors { left: parent.left; right: parent.right }