-rw-r--r-- | kmicromail/opiemail.cpp | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/kmicromail/opiemail.cpp b/kmicromail/opiemail.cpp index e088b9e..ca3faaf 100644 --- a/kmicromail/opiemail.cpp +++ b/kmicromail/opiemail.cpp @@ -4,2 +4,3 @@ #include "koprefsdialog.h" +#include <kapplication.h> #include <libkdepim/externalapphandler.h> @@ -33,7 +34,2 @@ #include <libmailwrapper/abstractmail.h> -/* OPIE */ -//#include <qpe/resource.h> -//#include <qpe/qpeapplication.h> - -/* QT */ @@ -223,10 +219,10 @@ void OpieMail::slotEditSettings() { -#if 0 - SettingsDialog settingsDialog( this, 0, true, WStyle_ContextHelp ); - settingsDialog.showMaximized(); - settingsDialog.exec(); -#endif + KOPrefsDialog settingsDialog( this, "koprefs", true ); +#ifndef DESKTOP_VERSION settingsDialog.showMaximized(); +#endif settingsDialog.exec(); + + // KApplication::execDialog(settingsDialog); } @@ -237,3 +233,5 @@ void OpieMail::slotEditAccounts() eaDialog.slotAdjustColumns(); +#ifndef DESKTOP_VERSION eaDialog.showMaximized(); +#endif eaDialog.exec(); @@ -254,3 +252,7 @@ void OpieMail::displayMail() readMail.setMail( mail ); +#ifndef DESKTOP_VERSION readMail.showMaximized(); +#else + readMail.resize( 640, 480); +#endif readMail.exec(); @@ -474,3 +476,7 @@ void OpieMail::reEditMail() compose.slotAdjustColumns(); +#ifndef DESKTOP_VERSION compose.showMaximized(); +#else + compose.resize(640,480); +#endif compose.exec(); |