Allow the window size and location to be saved per profile.

Patch is from Gentoo.

BUG: 181129

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1144208
This commit is contained in:
Kurt Hindenburg
2010-06-29 13:50:32 +00:00
parent 48cc2c5b30
commit cd4adc3fc4
9 changed files with 42 additions and 3 deletions

View File

@@ -253,6 +253,7 @@ void EditProfileDialog::setupGeneralPage(const Profile::Ptr info)
// window options
_ui->showMenuBarButton->setChecked( info->property<bool>(Profile::ShowMenuBar) );
_ui->saveGeometryOnExitButton->setChecked( info->property<bool>(Profile::SaveGeometryOnExit) );
// signals and slots
connect( _ui->dirSelectButton , SIGNAL(clicked()) , this , SLOT(selectInitialDir()) );
@@ -268,6 +269,8 @@ void EditProfileDialog::setupGeneralPage(const Profile::Ptr info)
connect(_ui->showMenuBarButton , SIGNAL(toggled(bool)) , this ,
SLOT(showMenuBar(bool)) );
connect(_ui->saveGeometryOnExitButton , SIGNAL(toggled(bool)) , this ,
SLOT(saveGeometryOnExit(bool)) );
connect(_ui->environmentEditButton , SIGNAL(clicked()) , this ,
SLOT(showEnvironmentEditor()) );
@@ -369,6 +372,10 @@ void EditProfileDialog::showMenuBar(bool show)
{
_tempProfile->setProperty(Profile::ShowMenuBar,show);
}
void EditProfileDialog::saveGeometryOnExit(bool save)
{
_tempProfile->setProperty(Profile::SaveGeometryOnExit,save);
}
void EditProfileDialog::tabTitleFormatChanged(const QString& format)
{
_tempProfile->setProperty(Profile::LocalTabTitleFormat,format);