on xenial help sign in
Add screenshot button to power menu (#329)
01fed9aKevin Keijzer
qml/Components/Dialogs.qml+8
@@ -271,6 +271,14 @@ MouseArea {
271 topLevelSurfaceList.closeAllWindows();
271 topLevelSurfaceList.closeAllWindows();
272 }
272 }
273 }
273 }
274+ Button {
275+ width: parent.width
276+ text: i18n.tr("Screenshot")
277+ onClicked: {
278+ powerDialog.hide();
279+ itemGrabber.capture(shell);
280+ }
281+ }
274 Button {
282 Button {
275 width: parent.width
283 width: parent.width
276 text: i18n.tr("Cancel")
284 text: i18n.tr("Cancel")
tests/qmltests/tst_OrientedShell.qml+3
@@ -1585,6 +1585,9 @@ Rectangle {
1585 keyClick(data.key);
1585 keyClick(data.key);
1586 tryCompare(buttons[2], "activeFocus", true);
1586 tryCompare(buttons[2], "activeFocus", true);
1587
1587
1588+ keyClick(data.key);
1589+ tryCompare(buttons[3], "activeFocus", true);
1590+
1588 keyClick(data.key);
1591 keyClick(data.key);
1589 tryCompare(buttons[0], "activeFocus", true);
1592 tryCompare(buttons[0], "activeFocus", true);
1590
1593