author | zautrix <zautrix> | 2004-10-31 16:54:47 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-31 16:54:47 (UTC) |
commit | 3964a158be731f1bb244ca861262df5fa8d04cf3 (patch) (unidiff) | |
tree | fa4a8e9af345c144562be480f21df6e3d8d609c7 /kmicromail/opiemail.cpp | |
parent | bed831cc1a38d38a4c5b9329bf37b1c663142c23 (diff) | |
download | kdepimpi-3964a158be731f1bb244ca861262df5fa8d04cf3.zip kdepimpi-3964a158be731f1bb244ca861262df5fa8d04cf3.tar.gz kdepimpi-3964a158be731f1bb244ca861262df5fa8d04cf3.tar.bz2 |
changed showmaximized for desktop
-rw-r--r-- | kmicromail/opiemail.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kmicromail/opiemail.cpp b/kmicromail/opiemail.cpp index fe9df87..8d16ae7 100644 --- a/kmicromail/opiemail.cpp +++ b/kmicromail/opiemail.cpp | |||
@@ -120,17 +120,19 @@ void OpieMail::slotwriteMail2(const QString& namemail ) | |||
120 | int sub = to.find( ">:"); | 120 | int sub = to.find( ">:"); |
121 | if ( sub > 0 ) { | 121 | if ( sub > 0 ) { |
122 | compose.setTo( to.left(sub+1) ); | 122 | compose.setTo( to.left(sub+1) ); |
123 | compose.setSubject( to.mid(sub+2) ); | 123 | compose.setSubject( to.mid(sub+2) ); |
124 | } else | 124 | } else |
125 | compose.setTo( to ); | 125 | compose.setTo( to ); |
126 | } | 126 | } |
127 | compose.slotAdjustColumns(); | 127 | compose.slotAdjustColumns(); |
128 | #ifndef DESKTOP_VERSION | ||
128 | compose.showMaximized(); | 129 | compose.showMaximized(); |
130 | #endif | ||
129 | compose.exec(); | 131 | compose.exec(); |
130 | raise(); | 132 | raise(); |
131 | //qDebug("retttich "); | 133 | //qDebug("retttich "); |
132 | } | 134 | } |
133 | void OpieMail::slotwriteMail(const QString&name,const QString&email) | 135 | void OpieMail::slotwriteMail(const QString&name,const QString&email) |
134 | { | 136 | { |
135 | // qDebug("OpieMail::slotwriteMail "); | 137 | // qDebug("OpieMail::slotwriteMail "); |
136 | ComposeMail compose( settings, this, 0, true ); | 138 | ComposeMail compose( settings, this, 0, true ); |
@@ -141,17 +143,19 @@ void OpieMail::slotwriteMail(const QString&name,const QString&email) | |||
141 | compose.setTo("\"" + name + "\"" + " " + "<"+ email + ">"); | 143 | compose.setTo("\"" + name + "\"" + " " + "<"+ email + ">"); |
142 | } | 144 | } |
143 | else | 145 | else |
144 | { | 146 | { |
145 | compose.setTo(email); | 147 | compose.setTo(email); |
146 | } | 148 | } |
147 | } | 149 | } |
148 | compose.slotAdjustColumns(); | 150 | compose.slotAdjustColumns(); |
151 | #ifndef DESKTOP_VERSION | ||
149 | compose.showMaximized(); | 152 | compose.showMaximized(); |
153 | #endif | ||
150 | compose.exec(); | 154 | compose.exec(); |
151 | raise(); | 155 | raise(); |
152 | } | 156 | } |
153 | 157 | ||
154 | void OpieMail::slotComposeMail() | 158 | void OpieMail::slotComposeMail() |
155 | { | 159 | { |
156 | if ( mPendingEmail == QString::null && mPendingName == QString::null) | 160 | if ( mPendingEmail == QString::null && mPendingName == QString::null) |
157 | slotwriteMail2( QString () ); | 161 | slotwriteMail2( QString () ); |
@@ -189,17 +193,19 @@ void OpieMail::slotSendQueued() | |||
189 | { | 193 | { |
190 | smtp = smtpList.at(0); | 194 | smtp = smtpList.at(0); |
191 | } | 195 | } |
192 | else | 196 | else |
193 | { | 197 | { |
194 | smtp = 0; | 198 | smtp = 0; |
195 | selectsmtp selsmtp; | 199 | selectsmtp selsmtp; |
196 | selsmtp.setSelectionlist(&smtpList); | 200 | selsmtp.setSelectionlist(&smtpList); |
201 | #ifndef DESKTOP_VERSION | ||
197 | selsmtp.showMaximized(); | 202 | selsmtp.showMaximized(); |
203 | #endif | ||
198 | if ( selsmtp.exec() == QDialog::Accepted ) | 204 | if ( selsmtp.exec() == QDialog::Accepted ) |
199 | { | 205 | { |
200 | smtp = selsmtp.selected_smtp(); | 206 | smtp = selsmtp.selected_smtp(); |
201 | } | 207 | } |
202 | } | 208 | } |
203 | if (smtp) | 209 | if (smtp) |
204 | { | 210 | { |
205 | SMTPwrapper * wrap = new SMTPwrapper(smtp); | 211 | SMTPwrapper * wrap = new SMTPwrapper(smtp); |