summaryrefslogtreecommitdiffabout
path: root/kmicromail
authorzautrix <zautrix>2004-07-05 18:01:38 (UTC)
committer zautrix <zautrix>2004-07-05 18:01:38 (UTC)
commit6a826e654102e78abb6d14f80a3679575e5d3c9a (patch) (side-by-side diff)
tree0dbc28b69c3b7614bd7c528034e8c1ef4b815de0 /kmicromail
parent9a90061115ee2cac8adc5b2d21e607b6c5c9b890 (diff)
downloadkdepimpi-6a826e654102e78abb6d14f80a3679575e5d3c9a.zip
kdepimpi-6a826e654102e78abb6d14f80a3679575e5d3c9a.tar.gz
kdepimpi-6a826e654102e78abb6d14f80a3679575e5d3c9a.tar.bz2
WSTYLE changes in mail
Diffstat (limited to 'kmicromail') (more/less context) (show whitespace changes)
-rw-r--r--kmicromail/main.cpp13
-rw-r--r--kmicromail/mainwindow.cpp2
-rw-r--r--kmicromail/opiemail.cpp2
3 files changed, 8 insertions, 9 deletions
diff --git a/kmicromail/main.cpp b/kmicromail/main.cpp
index a4f6a06..8a093c6 100644
--- a/kmicromail/main.cpp
+++ b/kmicromail/main.cpp
@@ -39,20 +39,19 @@ int main( int argc, char **argv ) {
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;
}
diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp
index a500dec..cd32c72 100644
--- a/kmicromail/mainwindow.cpp
+++ b/kmicromail/mainwindow.cpp
@@ -16,9 +16,9 @@
#include <kabc/stdaddressbook.h>
MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
- : QMainWindow( parent, name, flags )
+ : QMainWindow( parent, name ) //, flags )
{
setCaption( tr( "KMicroMail" ) );
setToolBarsMovable( false );
KABC::StdAddressBook::self();
diff --git a/kmicromail/opiemail.cpp b/kmicromail/opiemail.cpp
index bdbd93a..70fbcb2 100644
--- a/kmicromail/opiemail.cpp
+++ b/kmicromail/opiemail.cpp
@@ -22,9 +22,9 @@
using namespace Opie::Core;
OpieMail::OpieMail( QWidget *parent, const char *name, WFlags flags )
- : MainWindow( parent, name, WStyle_ContextHelp )
+ : MainWindow( parent, name) //, WStyle_ContextHelp )
{
settings = new Settings();
folderView->populate( settings->getAccounts() );