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

@@ -91,6 +91,8 @@ MainWindow::MainWindow()
connect( _viewManager , SIGNAL(setMenuBarVisibleRequest(bool)) , this ,
SLOT(setMenuBarVisibleOnce(bool)) );
connect( _viewManager , SIGNAL(setSaveGeometryOnExitRequest(bool)) , this ,
SLOT(setSaveGeometryOnExit(bool)) );
connect( _viewManager , SIGNAL(newViewRequest(Profile::Ptr)) ,
this , SLOT(newFromProfile(Profile::Ptr)) );
connect( _viewManager , SIGNAL(newViewRequest()) ,
@@ -141,6 +143,11 @@ void MainWindow::setMenuBarVisibleOnce(bool visible)
_menuBarVisibilitySet = true;
}
void MainWindow::setSaveGeometryOnExit(bool save)
{
setAutoSaveSettings("MainWindow",save);
}
void MainWindow::correctShortcuts()
{
// replace F1 shortcut for help contents