-rw-r--r-- | noncore/net/mail/editaccounts.cpp | 14 | ||||
-rw-r--r-- | noncore/net/mail/opiemail.cpp | 10 | ||||
-rw-r--r-- | noncore/net/mail/pop3configui.ui | 121 | ||||
-rw-r--r-- | noncore/net/mail/viewmail.h | 2 |
4 files changed, 47 insertions, 100 deletions
diff --git a/noncore/net/mail/editaccounts.cpp b/noncore/net/mail/editaccounts.cpp index 439b619..0c0ecaf 100644 --- a/noncore/net/mail/editaccounts.cpp +++ b/noncore/net/mail/editaccounts.cpp @@ -76,7 +76,7 @@ void EditAccounts::slotNewAccount( const QString &type ) } else if ( type.compare( "POP3" ) == 0 ) { qDebug( "-> config POP3" ); POP3account *account = new POP3account(); - POP3config pop3( account, this, 0, true ); + POP3config pop3( account, this, 0, true, WStyle_ContextHelp ); pop3.showMaximized(); if ( QDialog::Accepted == pop3.exec() ) { settings->addAccount( account ); @@ -88,7 +88,7 @@ void EditAccounts::slotNewAccount( const QString &type ) } else if ( type.compare( "SMTP" ) == 0 ) { qDebug( "-> config SMTP" ); SMTPaccount *account = new SMTPaccount(); - SMTPconfig smtp( account, this, 0, true ); + SMTPconfig smtp( account, this, 0, true, WStyle_ContextHelp ); smtp.showMaximized(); if ( QDialog::Accepted == smtp.exec() ) { settings->addAccount( account ); @@ -101,7 +101,7 @@ void EditAccounts::slotNewAccount( const QString &type ) } else if ( type.compare( "NNTP" ) == 0 ) { qDebug( "-> config NNTP" ); NNTPaccount *account = new NNTPaccount(); - NNTPconfig nntp( account, this, 0, true ); + NNTPconfig nntp( account, this, 0, true, WStyle_ContextHelp ); nntp.showMaximized(); if ( QDialog::Accepted == nntp.exec() ) { settings->addAccount( account ); @@ -117,28 +117,28 @@ void EditAccounts::slotEditAccount( Account *account ) { if ( account->getType().compare( "IMAP" ) == 0 ) { IMAPaccount *imapAcc = static_cast<IMAPaccount *>(account); - IMAPconfig imap( imapAcc, this, 0, true ); + IMAPconfig imap( imapAcc, this, 0, true, WStyle_ContextHelp ); imap.showMaximized(); if ( QDialog::Accepted == imap.exec() ) { slotFillLists(); } } else if ( account->getType().compare( "POP3" ) == 0 ) { POP3account *pop3Acc = static_cast<POP3account *>(account); - POP3config pop3( pop3Acc, this, 0, true ); + POP3config pop3( pop3Acc, this, 0, true, WStyle_ContextHelp ); pop3.showMaximized(); if ( QDialog::Accepted == pop3.exec() ) { slotFillLists(); } } else if ( account->getType().compare( "SMTP" ) == 0 ) { SMTPaccount *smtpAcc = static_cast<SMTPaccount *>(account); - SMTPconfig smtp( smtpAcc, this, 0, true ); + SMTPconfig smtp( smtpAcc, this, 0, true, WStyle_ContextHelp ); smtp.showMaximized(); if ( QDialog::Accepted == smtp.exec() ) { slotFillLists(); } } else if ( account->getType().compare( "NNTP" ) == 0 ) { NNTPaccount *nntpAcc = static_cast<NNTPaccount *>(account); - NNTPconfig nntp( nntpAcc, this, 0, true ); + NNTPconfig nntp( nntpAcc, this, 0, true, WStyle_ContextHelp ); nntp.showMaximized(); if ( QDialog::Accepted == nntp.exec() ) { slotFillLists(); 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 @@ -14,7 +14,7 @@ #include "selectstore.h" OpieMail::OpieMail( QWidget *parent, const char *name, WFlags flags ) - : MainWindow( parent, name, flags ) + : MainWindow( parent, name, WStyle_ContextHelp ) { settings = new Settings(); @@ -42,7 +42,7 @@ void OpieMail::appMessage(const QCString &msg, const QByteArray &data) void OpieMail::slotwriteMail(const QString&name,const QString&email) { - ComposeMail compose( settings, this, 0 , true ); + ComposeMail compose( settings, this, 0, true , WStyle_ContextHelp ); if (!email.isEmpty()) { if (!name.isEmpty()) { compose.setTo("\"" + name + "\"" + " " + "<"+ email + ">"); @@ -91,7 +91,7 @@ void OpieMail::slotSearchMails() void OpieMail::slotEditSettings() { - SettingsDialog settingsDialog( this, 0, true ); + SettingsDialog settingsDialog( this, 0, true, WStyle_ContextHelp ); settingsDialog.showMaximized(); settingsDialog.exec(); } @@ -99,7 +99,7 @@ void OpieMail::slotEditSettings() void OpieMail::slotEditAccounts() { qDebug( "Edit Accounts" ); - EditAccounts eaDialog( settings, this, 0, true ); + EditAccounts eaDialog( settings, this, 0, true, WStyle_ContextHelp ); eaDialog.showMaximized(); eaDialog.slotAdjustColumns(); eaDialog.exec(); @@ -115,7 +115,7 @@ void OpieMail::displayMail() if (!item) return; RecMail mail = ((MailListViewItem*)item)->data(); RecBody body = folderView->fetchBody(mail); - ViewMail readMail( this ); + ViewMail readMail( this,"", Qt::WType_Modal | WStyle_ContextHelp ); readMail.setBody( body ); readMail.setMail( mail ); readMail.showMaximized(); diff --git a/noncore/net/mail/pop3configui.ui b/noncore/net/mail/pop3configui.ui index 95cbdc2..1014ef4 100644 --- a/noncore/net/mail/pop3configui.ui +++ b/noncore/net/mail/pop3configui.ui @@ -11,8 +11,8 @@ <rect> <x>0</x> <y>0</y> - <width>232</width> - <height>320</height> + <width>314</width> + <height>410</height> </rect> </property> <property stdset="1"> @@ -25,21 +25,21 @@ <property> <name>layoutSpacing</name> </property> + <vbox> + <property stdset="1"> + <name>margin</name> + <number>3</number> + </property> + <property stdset="1"> + <name>spacing</name> + <number>3</number> + </property> <widget> <class>QLayoutWidget</class> <property stdset="1"> <name>name</name> <cstring>Layout12</cstring> </property> - <property stdset="1"> - <name>geometry</name> - <rect> - <x>3</x> - <y>3</y> - <width>226</width> - <height>32</height> - </rect> - </property> <hbox> <property stdset="1"> <name>margin</name> @@ -80,15 +80,6 @@ <cstring>line1</cstring> </property> <property stdset="1"> - <name>geometry</name> - <rect> - <x>3</x> - <y>38</y> - <width>226</width> - <height>16</height> - </rect> - </property> - <property stdset="1"> <name>orientation</name> <enum>Horizontal</enum> </property> @@ -99,15 +90,6 @@ <name>name</name> <cstring>Layout11</cstring> </property> - <property stdset="1"> - <name>geometry</name> - <rect> - <x>3</x> - <y>44</y> - <width>226</width> - <height>70</height> - </rect> - </property> <hbox> <property stdset="1"> <name>margin</name> @@ -195,15 +177,6 @@ <name>name</name> <cstring>Layout13</cstring> </property> - <property stdset="1"> - <name>geometry</name> - <rect> - <x>3</x> - <y>117</y> - <width>226</width> - <height>64</height> - </rect> - </property> <vbox> <property stdset="1"> <name>margin</name> @@ -234,19 +207,32 @@ </vbox> </widget> <widget> - <class>QLayoutWidget</class> + <class>QLineEdit</class> <property stdset="1"> <name>name</name> - <cstring>Layout6</cstring> + <cstring>CommandEdit</cstring> </property> <property stdset="1"> - <name>geometry</name> - <rect> - <x>3</x> - <y>223</y> - <width>226</width> - <height>70</height> - </rect> + <name>text</name> + <string>ssh $SERVER exec imapd</string> + </property> + </widget> + <widget> + <class>Line</class> + <property stdset="1"> + <name>name</name> + <cstring>line2</cstring> + </property> + <property stdset="1"> + <name>orientation</name> + <enum>Horizontal</enum> + </property> + </widget> + <widget> + <class>QLayoutWidget</class> + <property stdset="1"> + <name>name</name> + <cstring>Layout6</cstring> </property> <hbox> <property stdset="1"> @@ -354,46 +340,7 @@ </size> </property> </spacer> - <widget> - <class>QLineEdit</class> - <property stdset="1"> - <name>name</name> - <cstring>CommandEdit</cstring> - </property> - <property stdset="1"> - <name>geometry</name> - <rect> - <x>0</x> - <y>180</y> - <width>226</width> - <height>30</height> - </rect> - </property> - <property stdset="1"> - <name>text</name> - <string>ssh $SERVER exec imapd</string> - </property> - </widget> - <widget> - <class>Line</class> - <property stdset="1"> - <name>name</name> - <cstring>line2</cstring> - </property> - <property stdset="1"> - <name>geometry</name> - <rect> - <x>3</x> - <y>204</y> - <width>226</width> - <height>16</height> - </rect> - </property> - <property stdset="1"> - <name>orientation</name> - <enum>Horizontal</enum> - </property> - </widget> + </vbox> </widget> <tabstops> <tabstop>accountLine</tabstop> diff --git a/noncore/net/mail/viewmail.h b/noncore/net/mail/viewmail.h index 2d0e024..abbd5b3 100644 --- a/noncore/net/mail/viewmail.h +++ b/noncore/net/mail/viewmail.h @@ -31,7 +31,7 @@ class ViewMail : public ViewMailBase Q_OBJECT public: - ViewMail( QWidget *parent = 0, const char *name = 0, WFlags fl = Qt::WType_Modal); + ViewMail( QWidget *parent = 0, const char *name = 0, WFlags fl = 0); ~ViewMail(); void hide(); |