-rw-r--r-- | kaddressbook/mainembedded.cpp | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/kaddressbook/mainembedded.cpp b/kaddressbook/mainembedded.cpp index 336e350..50db377 100644 --- a/kaddressbook/mainembedded.cpp +++ b/kaddressbook/mainembedded.cpp | |||
@@ -89,11 +89,27 @@ int main( int argc, char **argv ) | |||
89 | 89 | ||
90 | #else | 90 | #else |
91 | a.setMainWidget( &m ); | 91 | a.setMainWidget( &m ); |
92 | m.resize (640, 480 ); | ||
93 | m.show(); | 92 | m.show(); |
94 | #endif | 93 | #endif |
95 | a.exec(); | 94 | a.exec(); |
96 | 95 | #ifdef DESKTOP_VERSION | |
96 | KConfig *config = KABPrefs::instance()->getConfig(); | ||
97 | config->setGroup("WidgetLayout"); | ||
98 | QStringList list ;//= config->readListEntry("MainLayout"); | ||
99 | int x,y,w,h; | ||
100 | QWidget* wid; | ||
101 | wid = &m; | ||
102 | x = wid->geometry().x(); | ||
103 | y = wid->geometry().y(); | ||
104 | w = wid->width(); | ||
105 | h = wid->height(); | ||
106 | list.clear(); | ||
107 | list << QString::number( x ); | ||
108 | list << QString::number( y ); | ||
109 | list << QString::number( w ); | ||
110 | list << QString::number( h ); | ||
111 | config->writeEntry("MainLayout",list ); | ||
112 | #endif | ||
97 | dumpMissing(); | 113 | dumpMissing(); |
98 | 114 | ||
99 | KPimGlobalPrefs::instance()->writeConfig(); | 115 | KPimGlobalPrefs::instance()->writeConfig(); |