Added fullscreen support

This commit is contained in:
Filippo Scognamiglio 2013-12-30 02:28:30 +01:00
parent 5964677291
commit 63b1fe86a2
2 changed files with 16 additions and 1 deletions

View File

@ -21,6 +21,8 @@
import QtQuick 2.1
Item{
property bool fullscreen: false
property real ambient_light: 0.2
property string background_color: "#002200"

View File

@ -31,29 +31,42 @@ ApplicationWindow{
title: qsTr("Terminal")
Action {
id: fullscreenAction
text: "&Fullscreen"
shortcut: "Alt+F11"
onTriggered: shadersettings.fullscreen = !shadersettings.fullscreen;
}
menuBar: MenuBar {
id: menubar
Menu {
title: qsTr("File")
visible: shadersettings.fullscreen ? false : true
MenuItem { text: "Close"; onTriggered: terminalWindow.close()}
}
Menu {
title: qsTr("Edit")
visible: shadersettings.fullscreen ? false : true
MenuItem {
text: qsTr("Settings")
onTriggered: {
settingswindow.show();
}
}
MenuItem{
action: fullscreenAction
}
}
}
visible: true
visibility: shadersettings.fullscreen ? Window.FullScreen : Window.Windowed
Item{
id: maincontainer
anchors.fill: parent
anchors.top: menuBar.bottom
clip: true
ShaderEffectSource{