Add option to remove '- Konsole' from window title

This may be overkill but for now add option to remove app name from
title.  The option is in the app-wide General Configure settings and
doesn't add unreasonable space to the dialog.

REVIEW: 115354
FEATURE: 307355
FIXED-IN: 2.13
(cherry picked from commit db6d9de83e)
wilder-portage
Kurt Hindenburg 12 years ago
parent 914067d14a
commit 4d5a30c821
  1. 6
      src/MainWindow.cpp
  2. 13
      src/settings/GeneralSettings.ui
  3. 5
      src/settings/konsole.kcfg

@ -272,7 +272,11 @@ void MainWindow::updateWindowCaption()
caption = userTitle;
}
setCaption(caption);
if (KonsoleSettings::showAppNameOnTitleBar()) {
setCaption(caption);
} else {
setPlainCaption(caption);
}
}
void MainWindow::updateWindowIcon()

@ -93,6 +93,19 @@
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QCheckBox" name="kcfg_ShowAppNameOnTitleBar">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Show application name on the titlebar</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>

@ -15,6 +15,11 @@
<tooltip>Show window title set by escape sequence on the titlebar</tooltip>
<default>false</default>
</entry>
<entry name="ShowAppNameOnTitleBar" type="Bool">
<label>Show "- Konsole" on the titlebar</label>
<tooltip>Show "- Konsole" on the titlebar</tooltip>
<default>true</default>
</entry>
<entry name="AllowMenuAccelerators" type="Bool">
<label>Enable menu accelerators</label>
<tooltip>Allow users to access top menu through Alt+Key combination</tooltip>

Loading…
Cancel
Save