author | zautrix <zautrix> | 2004-07-05 18:01:38 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-07-05 18:01:38 (UTC) |
commit | 6a826e654102e78abb6d14f80a3679575e5d3c9a (patch) (side-by-side diff) | |
tree | 0dbc28b69c3b7614bd7c528034e8c1ef4b815de0 /kmicromail/main.cpp | |
parent | 9a90061115ee2cac8adc5b2d21e607b6c5c9b890 (diff) | |
download | kdepimpi-6a826e654102e78abb6d14f80a3679575e5d3c9a.zip kdepimpi-6a826e654102e78abb6d14f80a3679575e5d3c9a.tar.gz kdepimpi-6a826e654102e78abb6d14f80a3679575e5d3c9a.tar.bz2 |
WSTYLE changes in mail
-rw-r--r-- | kmicromail/main.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/kmicromail/main.cpp b/kmicromail/main.cpp index a4f6a06..8a093c6 100644 --- a/kmicromail/main.cpp +++ b/kmicromail/main.cpp @@ -1,58 +1,57 @@ #ifndef DESKTOP_VERSION #include <qpe/qpeapplication.h> #include <stdlib.h> #else #include <qapplication.h> #include <qstring.h> #include <qwindowsstyle.h> #include <qplatinumstyle.h> #include <qsgistyle.h> #endif #include "opiemail.h" #include <qdir.h> #include <kstandarddirs.h> #include <kglobal.h> #include <stdio.h> #include "mainwindow.h" using namespace Opie::Core; int main( int argc, char **argv ) { #ifndef DESKTOP_VERSION QPEApplication a( argc, argv ); a.setKeepRunning (); #else QApplication a( argc, argv ); QApplication::setStyle( new QPlatinumStyle ()); #endif KGlobal::setAppName( "kmicromail" ); QString fileName ; #ifndef DESKTOP_VERSION fileName = getenv("QPEDIR"); if ( QApplication::desktop()->width() > 320 ) KGlobal::iconLoader()->setIconPath( fileName +"/pics/kdepim/kmicromail/icons22/"); else KGlobal::iconLoader()->setIconPath( fileName +"/pics/kdepim/kmicromail/"); #else fileName = qApp->applicationDirPath () + "/kdepim/kmicromail/"; KGlobal::iconLoader()->setIconPath(QDir::convertSeparators(fileName)); #endif KStandardDirs::setAppDir( QDir::convertSeparators(locateLocal("data", "kmicromail"))); - OpieMail* mw = new OpieMail(); + OpieMail mw; #ifndef DESKTOP_VERSION //qDebug("CONNECT "); - QObject::connect( &a, SIGNAL (appMessage ( const QCString &, const QByteArray & )),mw, SLOT(message( const QCString&, const QByteArray& ))); - a.showMainWidget(mw ); + QObject::connect( &a, SIGNAL (appMessage ( const QCString &, const QByteArray & )),&mw, SLOT(message( const QCString&, const QByteArray& ))); + a.showMainWidget(&mw ); #else - a.setMainWidget(mw ); - m.show(); + a.setMainWidget(&mw ); + mw.show(); //m.resize( 800, 600 ); -#endif QObject::connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit())); +#endif int rv = a.exec(); - delete mw; return rv; } |