author | alwin <alwin> | 2004-01-07 00:08:02 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-01-07 00:08:02 (UTC) |
commit | a0ea0a96c91d95aa379a086238de18075ee5e4b5 (patch) (unidiff) | |
tree | 8f4f558d6cc00675cd4584fe82c24ab59638a1ea | |
parent | a545ea9b957c14bdf9d8aa20e64457b64841ce7f (diff) | |
download | opie-a0ea0a96c91d95aa379a086238de18075ee5e4b5.zip opie-a0ea0a96c91d95aa379a086238de18075ee5e4b5.tar.gz opie-a0ea0a96c91d95aa379a086238de18075ee5e4b5.tar.bz2 |
why didn't them have any destructor?
-rw-r--r-- | noncore/net/mail/mainwindow.cpp | 5 | ||||
-rw-r--r-- | noncore/net/mail/mainwindow.h | 1 | ||||
-rw-r--r-- | noncore/net/mail/opiemail.cpp | 5 | ||||
-rw-r--r-- | noncore/net/mail/opiemail.h | 1 |
4 files changed, 11 insertions, 1 deletions
diff --git a/noncore/net/mail/mainwindow.cpp b/noncore/net/mail/mainwindow.cpp index d2e887b..e16f853 100644 --- a/noncore/net/mail/mainwindow.cpp +++ b/noncore/net/mail/mainwindow.cpp | |||
@@ -78,13 +78,13 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | |||
78 | 78 | ||
79 | editSettings = new QAction( tr( "Edit settings" ), QIconSet( Resource::loadPixmap("SettingsIcon") ) , | 79 | editSettings = new QAction( tr( "Edit settings" ), QIconSet( Resource::loadPixmap("SettingsIcon") ) , |
80 | 0, 0, this ); | 80 | 0, 0, this ); |
81 | editSettings->addTo( settingsMenu ); | 81 | editSettings->addTo( settingsMenu ); |
82 | connect( editSettings, SIGNAL( activated() ), | 82 | connect( editSettings, SIGNAL( activated() ), |
83 | SLOT( slotEditSettings() ) ); | 83 | SLOT( slotEditSettings() ) ); |
84 | editAccounts = new QAction( tr( "Configure accounts" ), QIconSet( Resource::loadPixmap("SettingsIcon") ) , | 84 | editAccounts = new QAction( tr( "Configure accounts" ), QIconSet( Resource::loadPixmap("mail/editaccounts") ) , |
85 | 0, 0, this ); | 85 | 0, 0, this ); |
86 | editAccounts->addTo( settingsMenu ); | 86 | editAccounts->addTo( settingsMenu ); |
87 | 87 | ||
88 | //setCentralWidget( view ); | 88 | //setCentralWidget( view ); |
89 | 89 | ||
90 | QVBox* wrapperBox = new QVBox( this ); | 90 | QVBox* wrapperBox = new QVBox( this ); |
@@ -128,12 +128,15 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | |||
128 | SLOT( mailHold( int, QListViewItem *,const QPoint&,int ) ) ); | 128 | SLOT( mailHold( int, QListViewItem *,const QPoint&,int ) ) ); |
129 | connect(folderView, SIGNAL(refreshMailview(QList<RecMail>*)),this,SLOT(refreshMailView(QList<RecMail>*))); | 129 | connect(folderView, SIGNAL(refreshMailview(QList<RecMail>*)),this,SLOT(refreshMailView(QList<RecMail>*))); |
130 | 130 | ||
131 | QTimer::singleShot( 1000, this, SLOT( slotAdjustColumns() ) ); | 131 | QTimer::singleShot( 1000, this, SLOT( slotAdjustColumns() ) ); |
132 | } | 132 | } |
133 | 133 | ||
134 | MainWindow::~MainWindow() | ||
135 | { | ||
136 | } | ||
134 | 137 | ||
135 | void MainWindow::slotAdjustLayout() { | 138 | void MainWindow::slotAdjustLayout() { |
136 | 139 | ||
137 | QWidget *d = QApplication::desktop(); | 140 | QWidget *d = QApplication::desktop(); |
138 | 141 | ||
139 | if ( d->width() < d->height() ) { | 142 | if ( d->width() < d->height() ) { |
diff --git a/noncore/net/mail/mainwindow.h b/noncore/net/mail/mainwindow.h index 0e077f6..15d216a 100644 --- a/noncore/net/mail/mainwindow.h +++ b/noncore/net/mail/mainwindow.h | |||
@@ -16,12 +16,13 @@ class RecMail; | |||
16 | class MainWindow : public QMainWindow | 16 | class MainWindow : public QMainWindow |
17 | { | 17 | { |
18 | Q_OBJECT | 18 | Q_OBJECT |
19 | 19 | ||
20 | public: | 20 | public: |
21 | MainWindow( QWidget *parent = 0, const char *name = 0, WFlags flags = 0 ); | 21 | MainWindow( QWidget *parent = 0, const char *name = 0, WFlags flags = 0 ); |
22 | virtual ~MainWindow(); | ||
22 | 23 | ||
23 | public slots: | 24 | public slots: |
24 | virtual void slotAdjustColumns(); | 25 | virtual void slotAdjustColumns(); |
25 | 26 | ||
26 | protected slots: | 27 | protected slots: |
27 | virtual void slotShowFolders( bool show ); | 28 | virtual void slotShowFolders( bool show ); |
diff --git a/noncore/net/mail/opiemail.cpp b/noncore/net/mail/opiemail.cpp index fcd48e2..c888708 100644 --- a/noncore/net/mail/opiemail.cpp +++ b/noncore/net/mail/opiemail.cpp | |||
@@ -27,12 +27,17 @@ OpieMail::OpieMail( QWidget *parent, const char *name, WFlags flags ) | |||
27 | #endif | 27 | #endif |
28 | 28 | ||
29 | 29 | ||
30 | 30 | ||
31 | } | 31 | } |
32 | 32 | ||
33 | OpieMail::~OpieMail() | ||
34 | { | ||
35 | if (settings) delete settings; | ||
36 | } | ||
37 | |||
33 | void OpieMail::appMessage(const QCString &msg, const QByteArray &data) | 38 | void OpieMail::appMessage(const QCString &msg, const QByteArray &data) |
34 | { | 39 | { |
35 | // copied from old mail2 | 40 | // copied from old mail2 |
36 | if (msg == "writeMail(QString,QString)") { | 41 | if (msg == "writeMail(QString,QString)") { |
37 | QDataStream stream(data,IO_ReadOnly); | 42 | QDataStream stream(data,IO_ReadOnly); |
38 | QString name, email; | 43 | QString name, email; |
diff --git a/noncore/net/mail/opiemail.h b/noncore/net/mail/opiemail.h index ebed5d8..69b8d43 100644 --- a/noncore/net/mail/opiemail.h +++ b/noncore/net/mail/opiemail.h | |||
@@ -8,12 +8,13 @@ | |||
8 | class OpieMail : public MainWindow | 8 | class OpieMail : public MainWindow |
9 | { | 9 | { |
10 | Q_OBJECT | 10 | Q_OBJECT |
11 | 11 | ||
12 | public: | 12 | public: |
13 | OpieMail( QWidget *parent = 0, const char *name = 0, WFlags flags = 0 ); | 13 | OpieMail( QWidget *parent = 0, const char *name = 0, WFlags flags = 0 ); |
14 | virtual ~OpieMail(); | ||
14 | static QString appName() { return QString::fromLatin1("opiemail"); } | 15 | static QString appName() { return QString::fromLatin1("opiemail"); } |
15 | 16 | ||
16 | public slots: | 17 | public slots: |
17 | virtual void slotwriteMail(const QString&name,const QString&email); | 18 | virtual void slotwriteMail(const QString&name,const QString&email); |
18 | virtual void slotComposeMail(); | 19 | virtual void slotComposeMail(); |
19 | virtual void appMessage(const QCString &msg, const QByteArray &data); | 20 | virtual void appMessage(const QCString &msg, const QByteArray &data); |