mirror of
https://github.com/KDE/konsole.git
synced 2026-05-05 05:07:06 -04:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user