[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdesdk/kapptemplate/kpartapp
From: David Faure <faure () kde ! org>
Date: 2002-12-10 11:15:07
[Download RAW message or body]
CVS commit by faure:
Was almost perfect already, only missing a setAutoSaveSettings()
M +7 -2 app.cpp 1.8
--- kdesdk/kapptemplate/kpartapp/app.cpp #1.7:1.8
@@ -65,4 +65,9 @@ ${APP_NAME}::${APP_NAME}()
return;
}
+
+ // apply the saved mainwindow settings, if any, and ask the mainwindow
+ // to automatically save settings if changed: window size, toolbar
+ // position, icon size, etc.
+ setAutoSaveSettings();
}
@@ -149,5 +154,5 @@ void ${APP_NAME}::optionsConfigureKeys()
void ${APP_NAME}::optionsConfigureToolbars()
{
- saveMainWindowSettings(KGlobal::config(), "MainWindow");
+ saveMainWindowSettings(KGlobal::config(), autoSaveGroup());
// use the standard toolbar editor
@@ -160,5 +165,5 @@ void ${APP_NAME}::optionsConfigureToolba
void ${APP_NAME}::applyNewToolbarConfig()
{
- applyMainWindowSettings(KGlobal::config(), "MainWindow");
+ applyMainWindowSettings(KGlobal::config(), autoSaveGroup());
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic