Fixed a couple of UI issues under osx.

This commit is contained in:
Filippo Scognamiglio
2014-10-10 15:12:28 +02:00
parent c57ef45ce6
commit 093cead312
4 changed files with 12 additions and 9 deletions

View File

@@ -37,7 +37,9 @@ ApplicationWindow{
onFullscreenChanged: visibility = (fullscreen ? Window.FullScreen : Window.Windowed)
//Workaround: if menubar is assigned ugly margins are visible.
menuBar: shadersettings.showMenubar ? defaultMenuBar : null
menuBar: Qt.platform.os === "osx"
? defaultMenuBar
: shadersettings.showMenubar ? defaultMenuBar : null
color: "#00000000"
title: qsTr("cool-retro-term")
@@ -45,6 +47,7 @@ ApplicationWindow{
Action {
id: showMenubarAction
text: qsTr("Show Menubar")
enabled: Qt.platform.os !== "osx"
checkable: true
checked: shadersettings.showMenubar
onTriggered: shadersettings.showMenubar = !shadersettings.showMenubar
@@ -52,6 +55,7 @@ ApplicationWindow{
Action {
id: fullscreenAction
text: qsTr("Fullscreen")
enabled: Qt.platform.os !== "osx"
shortcut: "Alt+F11"
onTriggered: shadersettings.fullscreen = !shadersettings.fullscreen;
checkable: true