Workaround for menubar margins.

This commit is contained in:
Filippo Scognamiglio 2014-09-18 10:33:40 +02:00
parent 774e4f5306
commit 82df40591b

View File

@ -36,6 +36,9 @@ ApplicationWindow{
property bool fullscreen: shadersettings.fullscreen
onFullscreenChanged: visibility = (fullscreen ? Window.FullScreen : Window.Windowed)
//Workaround: if menubar is assigned ugly margins are visible.
menuBar: shadersettings.showMenubar ? defaultMenuBar : null
flags: Qt.WA_TranslucentBackground
color: "#00000000"
title: qsTr("cool-retro-term")
@ -104,9 +107,8 @@ ApplicationWindow{
aboutDialog.show();
}
}
menuBar: MenuBar {
id: menubar
MenuBar {
id: defaultMenuBar
Menu {
title: qsTr("File")
visible: shadersettings.showMenubar