Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

Add screenshot button to power menu #329

Merged
merged 4 commits into from
Sep 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions qml/Components/Dialogs.qml
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,14 @@ MouseArea {
topLevelSurfaceList.closeAllWindows();
}
}
Button {
width: parent.width
text: i18n.tr("Screenshot")
onClicked: {
powerDialog.hide();
itemGrabber.capture(shell);
}
}
Button {
width: parent.width
text: i18n.tr("Cancel")
Expand Down
3 changes: 3 additions & 0 deletions tests/qmltests/tst_OrientedShell.qml
Original file line number Diff line number Diff line change
Expand Up @@ -1585,6 +1585,9 @@ Rectangle {
keyClick(data.key);
tryCompare(buttons[2], "activeFocus", true);

keyClick(data.key);
tryCompare(buttons[3], "activeFocus", true);

keyClick(data.key);
tryCompare(buttons[0], "activeFocus", true);

Expand Down