Merge pull request #409 from haesbaert/master
Add a -T option that sets window title.
This commit was merged in pull request #409.
This commit is contained in:
@@ -41,6 +41,8 @@ QtObject{
|
||||
property bool fullscreen: false
|
||||
property bool showMenubar: true
|
||||
|
||||
property string wintitle: "cool-retro-term"
|
||||
|
||||
property real windowOpacity: 1.0
|
||||
property real ambientLight: 0.2
|
||||
property real contrast: 0.85
|
||||
@@ -485,6 +487,10 @@ QtObject{
|
||||
showMenubar = false;
|
||||
}
|
||||
|
||||
if (args.indexOf("-T") !== -1) {
|
||||
wintitle = args[args.indexOf("-T") + 1]
|
||||
}
|
||||
|
||||
initializedSettings();
|
||||
}
|
||||
Component.onDestruction: {
|
||||
|
||||
@@ -62,8 +62,10 @@ ApplicationWindow{
|
||||
__contentItem.visible: mainMenu.visible
|
||||
}
|
||||
|
||||
property string wintitle: appSettings.wintitle
|
||||
|
||||
color: "#00000000"
|
||||
title: terminalContainer.title || qsTr("cool-retro-term")
|
||||
title: terminalContainer.title || qsTr(appSettings.wintitle)
|
||||
|
||||
Action {
|
||||
id: showMenubarAction
|
||||
|
||||
Reference in New Issue
Block a user