From 5f844d403926c88168a61763deb9119642e032a9 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Thu, 20 Aug 2015 13:33:10 +0200 Subject: [PATCH] Added action for togling fullscreen Contributes to CURA-52 --- resources/qml/Actions.qml | 8 ++++++++ resources/qml/Cura.qml | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/resources/qml/Actions.qml b/resources/qml/Actions.qml index 5b5a73a81a..29bd573d12 100644 --- a/resources/qml/Actions.qml +++ b/resources/qml/Actions.qml @@ -40,6 +40,14 @@ Item { property alias reportBug: reportBugAction; property alias about: aboutAction; + property alias toggleFullScreen: toggleFullScreenAction; + + Action + { + id:toggleFullScreenAction + shortcut: StandardKey.FullScreen; + } + Action { id: undoAction; //: Undo action diff --git a/resources/qml/Cura.qml b/resources/qml/Cura.qml index 2388f0d5e7..7b9828711f 100644 --- a/resources/qml/Cura.qml +++ b/resources/qml/Cura.qml @@ -12,7 +12,6 @@ import UM 1.1 as UM UM.MainWindow { id: base visible: true - //: Cura application window title title: qsTr("Cura"); @@ -425,6 +424,8 @@ UM.MainWindow { reportBug.onTriggered: CuraActions.openBugReportPage(); showEngineLog.onTriggered: engineLog.visible = true; about.onTriggered: aboutDialog.visible = true; + toggleFullScreen.onTriggered: base.toggleFullscreen() + } Menu {