Merge remote-tracking branch 'origin/xenial' into xenial_-_edge_-_wayland
commit173b58cf6e1c84e6df88d1cd049d32938b6b043f
authorRodney Dawes <dobey@ubports.com>
dateWed 30 Sep 2020, 16:07 (6 years ago)
parent9cc600801fed9a
qml/Components/Dialogs.qml+8
@@ -271,6 +271,14 @@ MouseArea {
271271 topLevelSurfaceList.closeAllWindows();
272272 }
273273 }
274+ Button {
275+ width: parent.width
276+ text: i18n.tr("Screenshot")
277+ onClicked: {
278+ powerDialog.hide();
279+ itemGrabber.capture(shell);
280+ }
281+ }
274282 Button {
275283 width: parent.width
276284 text: i18n.tr("Cancel")
tests/qmltests/tst_OrientedShell.qml+3
@@ -1586,6 +1586,9 @@ Rectangle {
15861586 keyClick(data.key);
15871587 tryCompare(buttons[2], "activeFocus", true);
15881588
1589+ keyClick(data.key);
1590+ tryCompare(buttons[3], "activeFocus", true);
1591+
15891592 keyClick(data.key);
15901593 tryCompare(buttons[0], "activeFocus", true);
15911594