Diffstat (limited to 'noncore/net/mail/opiemail.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/opiemail.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/noncore/net/mail/opiemail.cpp b/noncore/net/mail/opiemail.cpp index dee3f70..39e3a64 100644 --- a/noncore/net/mail/opiemail.cpp +++ b/noncore/net/mail/opiemail.cpp | |||
@@ -11,13 +11,13 @@ | |||
11 | #include <libmailwrapper/mailtypes.h> | 11 | #include <libmailwrapper/mailtypes.h> |
12 | #include "mailistviewitem.h" | 12 | #include "mailistviewitem.h" |
13 | #include "viewmail.h" | 13 | #include "viewmail.h" |
14 | #include "selectstore.h" | 14 | #include "selectstore.h" |
15 | 15 | ||
16 | OpieMail::OpieMail( QWidget *parent, const char *name, WFlags flags ) | 16 | OpieMail::OpieMail( QWidget *parent, const char *name, WFlags flags ) |
17 | : MainWindow( parent, name, flags ) | 17 | : MainWindow( parent, name, WStyle_ContextHelp ) |
18 | { | 18 | { |
19 | settings = new Settings(); | 19 | settings = new Settings(); |
20 | 20 | ||
21 | folderView->populate( settings->getAccounts() ); | 21 | folderView->populate( settings->getAccounts() ); |
22 | } | 22 | } |
23 | 23 | ||
@@ -39,13 +39,13 @@ void OpieMail::appMessage(const QCString &msg, const QByteArray &data) | |||
39 | slotComposeMail(); | 39 | slotComposeMail(); |
40 | } | 40 | } |
41 | } | 41 | } |
42 | 42 | ||
43 | void OpieMail::slotwriteMail(const QString&name,const QString&email) | 43 | void OpieMail::slotwriteMail(const QString&name,const QString&email) |
44 | { | 44 | { |
45 | ComposeMail compose( settings, this, 0 , true ); | 45 | ComposeMail compose( settings, this, 0, true , WStyle_ContextHelp ); |
46 | if (!email.isEmpty()) { | 46 | if (!email.isEmpty()) { |
47 | if (!name.isEmpty()) { | 47 | if (!name.isEmpty()) { |
48 | compose.setTo("\"" + name + "\"" + " " + "<"+ email + ">"); | 48 | compose.setTo("\"" + name + "\"" + " " + "<"+ email + ">"); |
49 | } else { | 49 | } else { |
50 | compose.setTo(email); | 50 | compose.setTo(email); |
51 | } | 51 | } |
@@ -88,21 +88,21 @@ void OpieMail::slotSearchMails() | |||
88 | { | 88 | { |
89 | qDebug( "Search Mails" ); | 89 | qDebug( "Search Mails" ); |
90 | } | 90 | } |
91 | 91 | ||
92 | void OpieMail::slotEditSettings() | 92 | void OpieMail::slotEditSettings() |
93 | { | 93 | { |
94 | SettingsDialog settingsDialog( this, 0, true ); | 94 | SettingsDialog settingsDialog( this, 0, true, WStyle_ContextHelp ); |
95 | settingsDialog.showMaximized(); | 95 | settingsDialog.showMaximized(); |
96 | settingsDialog.exec(); | 96 | settingsDialog.exec(); |
97 | } | 97 | } |
98 | 98 | ||
99 | void OpieMail::slotEditAccounts() | 99 | void OpieMail::slotEditAccounts() |
100 | { | 100 | { |
101 | qDebug( "Edit Accounts" ); | 101 | qDebug( "Edit Accounts" ); |
102 | EditAccounts eaDialog( settings, this, 0, true ); | 102 | EditAccounts eaDialog( settings, this, 0, true, WStyle_ContextHelp ); |
103 | eaDialog.showMaximized(); | 103 | eaDialog.showMaximized(); |
104 | eaDialog.slotAdjustColumns(); | 104 | eaDialog.slotAdjustColumns(); |
105 | eaDialog.exec(); | 105 | eaDialog.exec(); |
106 | if ( settings ) delete settings; | 106 | if ( settings ) delete settings; |
107 | settings = new Settings(); | 107 | settings = new Settings(); |
108 | 108 | ||
@@ -112,22 +112,22 @@ void OpieMail::slotEditAccounts() | |||
112 | void OpieMail::displayMail() | 112 | void OpieMail::displayMail() |
113 | { | 113 | { |
114 | QListViewItem*item = mailView->currentItem(); | 114 | QListViewItem*item = mailView->currentItem(); |
115 | if (!item) return; | 115 | if (!item) return; |
116 | RecMail mail = ((MailListViewItem*)item)->data(); | 116 | RecMail mail = ((MailListViewItem*)item)->data(); |
117 | RecBody body = folderView->fetchBody(mail); | 117 | RecBody body = folderView->fetchBody(mail); |
118 | ViewMail readMail( this ); | 118 | ViewMail readMail( this,"", Qt::WType_Modal | WStyle_ContextHelp ); |
119 | readMail.setBody( body ); | 119 | readMail.setBody( body ); |
120 | readMail.setMail( mail ); | 120 | readMail.setMail( mail ); |
121 | readMail.showMaximized(); | 121 | readMail.showMaximized(); |
122 | readMail.exec(); | 122 | readMail.exec(); |
123 | 123 | ||
124 | if ( readMail.deleted ) { | 124 | if ( readMail.deleted ) { |
125 | folderView->refreshCurrent(); | 125 | folderView->refreshCurrent(); |
126 | } else { | 126 | } else { |
127 | ( (MailListViewItem*)item )->setPixmap( 0, Resource::loadPixmap( "") ); | 127 | ( (MailListViewItem*)item )->setPixmap( 0, Resource::loadPixmap( "" ) ); |
128 | } | 128 | } |
129 | } | 129 | } |
130 | 130 | ||
131 | void OpieMail::slotDeleteMail() | 131 | void OpieMail::slotDeleteMail() |
132 | { | 132 | { |
133 | if (!mailView->currentItem()) return; | 133 | if (!mailView->currentItem()) return; |