mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-02-27 15:29:03 +00:00
Merge pull request #409 from haesbaert/master
Add a -T option that sets window title.
This commit is contained in:
commit
0be17716f5
@ -54,6 +54,7 @@ int main(int argc, char *argv[])
|
|||||||
qDebug() << " --default-settings Run cool-retro-term with the default settings";
|
qDebug() << " --default-settings Run cool-retro-term with the default settings";
|
||||||
qDebug() << " --workdir <dir> Change working directory to 'dir'";
|
qDebug() << " --workdir <dir> Change working directory to 'dir'";
|
||||||
qDebug() << " -e <cmd> Command to execute. This option will catch all following arguments, so use it as the last option.";
|
qDebug() << " -e <cmd> Command to execute. This option will catch all following arguments, so use it as the last option.";
|
||||||
|
qDebug() << " -T <title> Set window title to 'title'.";
|
||||||
qDebug() << " --fullscreen Run cool-retro-term in fullscreen.";
|
qDebug() << " --fullscreen Run cool-retro-term in fullscreen.";
|
||||||
qDebug() << " -p|--profile <prof> Run cool-retro-term with the given profile.";
|
qDebug() << " -p|--profile <prof> Run cool-retro-term with the given profile.";
|
||||||
qDebug() << " -h|--help Print this help.";
|
qDebug() << " -h|--help Print this help.";
|
||||||
|
@ -41,6 +41,8 @@ QtObject{
|
|||||||
property bool fullscreen: false
|
property bool fullscreen: false
|
||||||
property bool showMenubar: true
|
property bool showMenubar: true
|
||||||
|
|
||||||
|
property string wintitle: "cool-retro-term"
|
||||||
|
|
||||||
property real windowOpacity: 1.0
|
property real windowOpacity: 1.0
|
||||||
property real ambientLight: 0.2
|
property real ambientLight: 0.2
|
||||||
property real contrast: 0.85
|
property real contrast: 0.85
|
||||||
@ -485,6 +487,10 @@ QtObject{
|
|||||||
showMenubar = false;
|
showMenubar = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (args.indexOf("-T") !== -1) {
|
||||||
|
wintitle = args[args.indexOf("-T") + 1]
|
||||||
|
}
|
||||||
|
|
||||||
initializedSettings();
|
initializedSettings();
|
||||||
}
|
}
|
||||||
Component.onDestruction: {
|
Component.onDestruction: {
|
||||||
|
@ -62,8 +62,10 @@ ApplicationWindow{
|
|||||||
__contentItem.visible: mainMenu.visible
|
__contentItem.visible: mainMenu.visible
|
||||||
}
|
}
|
||||||
|
|
||||||
|
property string wintitle: appSettings.wintitle
|
||||||
|
|
||||||
color: "#00000000"
|
color: "#00000000"
|
||||||
title: terminalContainer.title || qsTr("cool-retro-term")
|
title: terminalContainer.title || qsTr(appSettings.wintitle)
|
||||||
|
|
||||||
Action {
|
Action {
|
||||||
id: showMenubarAction
|
id: showMenubarAction
|
||||||
|
Loading…
x
Reference in New Issue
Block a user