-rw-r--r-- | noncore/net/mail/mainwindow.cpp | 8 | ||||
-rw-r--r-- | noncore/net/mail/mainwindow.h | 2 | ||||
-rw-r--r-- | noncore/net/mail/opiemail.cpp | 6 | ||||
-rw-r--r-- | noncore/net/mail/opiemail.h | 14 |
4 files changed, 14 insertions, 16 deletions
diff --git a/noncore/net/mail/mainwindow.cpp b/noncore/net/mail/mainwindow.cpp index cf4cbe8..2a74286 100644 --- a/noncore/net/mail/mainwindow.cpp +++ b/noncore/net/mail/mainwindow.cpp | |||
@@ -11,7 +11,6 @@ | |||
11 | 11 | ||
12 | #include "defines.h" | 12 | #include "defines.h" |
13 | #include "mainwindow.h" | 13 | #include "mainwindow.h" |
14 | #include "settingsdialog.h" | ||
15 | #include "viewmail.h" | 14 | #include "viewmail.h" |
16 | #include "mailtypes.h" | 15 | #include "mailtypes.h" |
17 | #include "mailistviewitem.h" | 16 | #include "mailistviewitem.h" |
@@ -80,7 +79,6 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | |||
80 | editSettings->addTo( settingsMenu ); | 79 | editSettings->addTo( settingsMenu ); |
81 | connect( editSettings, SIGNAL( activated() ), | 80 | connect( editSettings, SIGNAL( activated() ), |
82 | SLOT( slotEditSettings() ) ); | 81 | SLOT( slotEditSettings() ) ); |
83 | |||
84 | editAccounts = new QAction( tr( "Configure accounts" ), ICON_EDITACCOUNTS, | 82 | editAccounts = new QAction( tr( "Configure accounts" ), ICON_EDITACCOUNTS, |
85 | 0, 0, this ); | 83 | 0, 0, this ); |
86 | editAccounts->addTo( settingsMenu ); | 84 | editAccounts->addTo( settingsMenu ); |
@@ -157,10 +155,8 @@ void MainWindow::slotAdjustColumns() | |||
157 | mailView->setColumnWidth( 4, 50 ); | 155 | mailView->setColumnWidth( 4, 50 ); |
158 | } | 156 | } |
159 | 157 | ||
160 | void MainWindow::slotEditSettings() { | 158 | void MainWindow::slotEditSettings() |
161 | SettingsDialog settingsDialog( this, 0, true ); | 159 | { |
162 | settingsDialog.showMaximized(); | ||
163 | settingsDialog.exec(); | ||
164 | } | 160 | } |
165 | 161 | ||
166 | void MainWindow::slotShowFolders( bool show ) | 162 | void MainWindow::slotShowFolders( bool show ) |
diff --git a/noncore/net/mail/mainwindow.h b/noncore/net/mail/mainwindow.h index 638232a..0e077f6 100644 --- a/noncore/net/mail/mainwindow.h +++ b/noncore/net/mail/mainwindow.h | |||
@@ -21,7 +21,7 @@ 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 | 22 | ||
23 | public slots: | 23 | public slots: |
24 | void slotAdjustColumns(); | 24 | virtual void slotAdjustColumns(); |
25 | 25 | ||
26 | protected slots: | 26 | protected slots: |
27 | virtual void slotShowFolders( bool show ); | 27 | virtual void slotShowFolders( bool show ); |
diff --git a/noncore/net/mail/opiemail.cpp b/noncore/net/mail/opiemail.cpp index 2909893..e35f5b6 100644 --- a/noncore/net/mail/opiemail.cpp +++ b/noncore/net/mail/opiemail.cpp | |||
@@ -1,4 +1,5 @@ | |||
1 | #include <qmessagebox.h> | 1 | #include <qmessagebox.h> |
2 | #include "settingsdialog.h" | ||
2 | #include "opiemail.h" | 3 | #include "opiemail.h" |
3 | #include "editaccounts.h" | 4 | #include "editaccounts.h" |
4 | #include "composemail.h" | 5 | #include "composemail.h" |
@@ -17,7 +18,6 @@ OpieMail::OpieMail( QWidget *parent, const char *name, WFlags flags ) | |||
17 | connect( composeMail, SIGNAL( activated() ), SLOT( slotComposeMail() ) ); | 18 | connect( composeMail, SIGNAL( activated() ), SLOT( slotComposeMail() ) ); |
18 | connect( sendQueued, SIGNAL( activated() ), SLOT( slotSendQueued() ) ); | 19 | connect( sendQueued, SIGNAL( activated() ), SLOT( slotSendQueued() ) ); |
19 | // connect( searchMails, SIGNAL( activated() ), SLOT( slotSearchMails() ) ); | 20 | // connect( searchMails, SIGNAL( activated() ), SLOT( slotSearchMails() ) ); |
20 | connect( editSettings, SIGNAL( activated() ), SLOT( slotEditSettings() ) ); | ||
21 | connect( editAccounts, SIGNAL( activated() ), SLOT( slotEditAccounts() ) ); | 21 | connect( editAccounts, SIGNAL( activated() ), SLOT( slotEditAccounts() ) ); |
22 | // Added by Stefan Eilers to allow starting by addressbook.. | 22 | // Added by Stefan Eilers to allow starting by addressbook.. |
23 | // copied from old mail2 | 23 | // copied from old mail2 |
@@ -92,7 +92,9 @@ void OpieMail::slotSearchMails() | |||
92 | 92 | ||
93 | void OpieMail::slotEditSettings() | 93 | void OpieMail::slotEditSettings() |
94 | { | 94 | { |
95 | qDebug( "Edit Settings" ); | 95 | SettingsDialog settingsDialog( this, 0, true ); |
96 | settingsDialog.showMaximized(); | ||
97 | settingsDialog.exec(); | ||
96 | } | 98 | } |
97 | 99 | ||
98 | void OpieMail::slotEditAccounts() | 100 | void OpieMail::slotEditAccounts() |
diff --git a/noncore/net/mail/opiemail.h b/noncore/net/mail/opiemail.h index 8cbcaa4..4e3c974 100644 --- a/noncore/net/mail/opiemail.h +++ b/noncore/net/mail/opiemail.h | |||
@@ -13,14 +13,14 @@ public: | |||
13 | static QString appName() { return QString::fromLatin1("opiemail"); } | 13 | static QString appName() { return QString::fromLatin1("opiemail"); } |
14 | 14 | ||
15 | public slots: | 15 | public slots: |
16 | void slotwriteMail(const QString&name,const QString&email); | 16 | virtual void slotwriteMail(const QString&name,const QString&email); |
17 | void slotComposeMail(); | 17 | virtual void slotComposeMail(); |
18 | void appMessage(const QCString &msg, const QByteArray &data); | 18 | virtual void appMessage(const QCString &msg, const QByteArray &data); |
19 | protected slots: | 19 | protected slots: |
20 | void slotSendQueued(); | 20 | virtual void slotSendQueued(); |
21 | void slotSearchMails(); | 21 | virtual void slotSearchMails(); |
22 | void slotEditSettings(); | 22 | virtual void slotEditSettings(); |
23 | void slotEditAccounts(); | 23 | virtual void slotEditAccounts(); |
24 | private: | 24 | private: |
25 | Settings *settings; | 25 | Settings *settings; |
26 | 26 | ||