Add a checkbox to hide the size widget upon resizing window.

Re-add the KDE 3 option to show/hide the size widget when the window is
changed.

Patch is years old from Chali Ahmul M.P.U <chali.ahmul@atlas.cz>
FEATURE: 169054
FIXED-IN: 4.8
This commit is contained in:
Kurt Hindenburg
2011-07-31 20:56:16 -04:00
parent febd3c63da
commit b40a006db8
8 changed files with 38 additions and 0 deletions

View File

@@ -260,6 +260,7 @@ void EditProfileDialog::setupGeneralPage(const Profile::Ptr info)
// window options
_ui->showMenuBarButton->setChecked( info->property<bool>(Profile::ShowMenuBar) );
_ui->showSizeWidgetButton->setChecked( info->property<bool>(Profile::ShowSizeWidget) );
_ui->saveGeometryOnExitButton->setChecked( info->property<bool>(Profile::SaveGeometryOnExit) );
// signals and slots
@@ -279,6 +280,9 @@ void EditProfileDialog::setupGeneralPage(const Profile::Ptr info)
connect(_ui->saveGeometryOnExitButton , SIGNAL(toggled(bool)) , this ,
SLOT(saveGeometryOnExit(bool)) );
connect(_ui->showSizeWidgetButton , SIGNAL(toggled(bool)) , this ,
SLOT(showSizeWidget(bool)) );
connect(_ui->environmentEditButton , SIGNAL(clicked()) , this ,
SLOT(showEnvironmentEditor()) );
}
@@ -385,6 +389,10 @@ void EditProfileDialog::saveGeometryOnExit(bool save)
{
updateTempProfileProperty(Profile::SaveGeometryOnExit,save);
}
void EditProfileDialog::showSizeWidget(bool show)
{
_tempProfile->setProperty(Profile::ShowSizeWidget,show);
}
void EditProfileDialog::tabTitleFormatChanged(const QString& format)
{
updateTempProfileProperty(Profile::LocalTabTitleFormat,format);