Diffstat (limited to 'noncore/net/mail/editaccounts.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/editaccounts.cpp | 14 |
1 files changed, 7 insertions, 7 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 | |||
@@ -73,38 +73,38 @@ void EditAccounts::slotNewAccount( const QString &type ) | |||
73 | } else { | 73 | } else { |
74 | account->remove(); | 74 | account->remove(); |
75 | } | 75 | } |
76 | } else if ( type.compare( "POP3" ) == 0 ) { | 76 | } else if ( type.compare( "POP3" ) == 0 ) { |
77 | qDebug( "-> config POP3" ); | 77 | qDebug( "-> config POP3" ); |
78 | POP3account *account = new POP3account(); | 78 | POP3account *account = new POP3account(); |
79 | POP3config pop3( account, this, 0, true ); | 79 | POP3config pop3( account, this, 0, true, WStyle_ContextHelp ); |
80 | pop3.showMaximized(); | 80 | pop3.showMaximized(); |
81 | if ( QDialog::Accepted == pop3.exec() ) { | 81 | if ( QDialog::Accepted == pop3.exec() ) { |
82 | settings->addAccount( account ); | 82 | settings->addAccount( account ); |
83 | account->save(); | 83 | account->save(); |
84 | slotFillLists(); | 84 | slotFillLists(); |
85 | } else { | 85 | } else { |
86 | account->remove(); | 86 | account->remove(); |
87 | } | 87 | } |
88 | } else if ( type.compare( "SMTP" ) == 0 ) { | 88 | } else if ( type.compare( "SMTP" ) == 0 ) { |
89 | qDebug( "-> config SMTP" ); | 89 | qDebug( "-> config SMTP" ); |
90 | SMTPaccount *account = new SMTPaccount(); | 90 | SMTPaccount *account = new SMTPaccount(); |
91 | SMTPconfig smtp( account, this, 0, true ); | 91 | SMTPconfig smtp( account, this, 0, true, WStyle_ContextHelp ); |
92 | smtp.showMaximized(); | 92 | smtp.showMaximized(); |
93 | if ( QDialog::Accepted == smtp.exec() ) { | 93 | if ( QDialog::Accepted == smtp.exec() ) { |
94 | settings->addAccount( account ); | 94 | settings->addAccount( account ); |
95 | account->save(); | 95 | account->save(); |
96 | slotFillLists(); | 96 | slotFillLists(); |
97 | 97 | ||
98 | } else { | 98 | } else { |
99 | account->remove(); | 99 | account->remove(); |
100 | } | 100 | } |
101 | } else if ( type.compare( "NNTP" ) == 0 ) { | 101 | } else if ( type.compare( "NNTP" ) == 0 ) { |
102 | qDebug( "-> config NNTP" ); | 102 | qDebug( "-> config NNTP" ); |
103 | NNTPaccount *account = new NNTPaccount(); | 103 | NNTPaccount *account = new NNTPaccount(); |
104 | NNTPconfig nntp( account, this, 0, true ); | 104 | NNTPconfig nntp( account, this, 0, true, WStyle_ContextHelp ); |
105 | nntp.showMaximized(); | 105 | nntp.showMaximized(); |
106 | if ( QDialog::Accepted == nntp.exec() ) { | 106 | if ( QDialog::Accepted == nntp.exec() ) { |
107 | settings->addAccount( account ); | 107 | settings->addAccount( account ); |
108 | account->save(); | 108 | account->save(); |
109 | slotFillLists(); | 109 | slotFillLists(); |
110 | } else { | 110 | } else { |
@@ -114,34 +114,34 @@ void EditAccounts::slotNewAccount( const QString &type ) | |||
114 | } | 114 | } |
115 | 115 | ||
116 | void EditAccounts::slotEditAccount( Account *account ) | 116 | void EditAccounts::slotEditAccount( Account *account ) |
117 | { | 117 | { |
118 | if ( account->getType().compare( "IMAP" ) == 0 ) { | 118 | if ( account->getType().compare( "IMAP" ) == 0 ) { |
119 | IMAPaccount *imapAcc = static_cast<IMAPaccount *>(account); | 119 | IMAPaccount *imapAcc = static_cast<IMAPaccount *>(account); |
120 | IMAPconfig imap( imapAcc, this, 0, true ); | 120 | IMAPconfig imap( imapAcc, this, 0, true, WStyle_ContextHelp ); |
121 | imap.showMaximized(); | 121 | imap.showMaximized(); |
122 | if ( QDialog::Accepted == imap.exec() ) { | 122 | if ( QDialog::Accepted == imap.exec() ) { |
123 | slotFillLists(); | 123 | slotFillLists(); |
124 | } | 124 | } |
125 | } else if ( account->getType().compare( "POP3" ) == 0 ) { | 125 | } else if ( account->getType().compare( "POP3" ) == 0 ) { |
126 | POP3account *pop3Acc = static_cast<POP3account *>(account); | 126 | POP3account *pop3Acc = static_cast<POP3account *>(account); |
127 | POP3config pop3( pop3Acc, this, 0, true ); | 127 | POP3config pop3( pop3Acc, this, 0, true, WStyle_ContextHelp ); |
128 | pop3.showMaximized(); | 128 | pop3.showMaximized(); |
129 | if ( QDialog::Accepted == pop3.exec() ) { | 129 | if ( QDialog::Accepted == pop3.exec() ) { |
130 | slotFillLists(); | 130 | slotFillLists(); |
131 | } | 131 | } |
132 | } else if ( account->getType().compare( "SMTP" ) == 0 ) { | 132 | } else if ( account->getType().compare( "SMTP" ) == 0 ) { |
133 | SMTPaccount *smtpAcc = static_cast<SMTPaccount *>(account); | 133 | SMTPaccount *smtpAcc = static_cast<SMTPaccount *>(account); |
134 | SMTPconfig smtp( smtpAcc, this, 0, true ); | 134 | SMTPconfig smtp( smtpAcc, this, 0, true, WStyle_ContextHelp ); |
135 | smtp.showMaximized(); | 135 | smtp.showMaximized(); |
136 | if ( QDialog::Accepted == smtp.exec() ) { | 136 | if ( QDialog::Accepted == smtp.exec() ) { |
137 | slotFillLists(); | 137 | slotFillLists(); |
138 | } | 138 | } |
139 | } else if ( account->getType().compare( "NNTP" ) == 0 ) { | 139 | } else if ( account->getType().compare( "NNTP" ) == 0 ) { |
140 | NNTPaccount *nntpAcc = static_cast<NNTPaccount *>(account); | 140 | NNTPaccount *nntpAcc = static_cast<NNTPaccount *>(account); |
141 | NNTPconfig nntp( nntpAcc, this, 0, true ); | 141 | NNTPconfig nntp( nntpAcc, this, 0, true, WStyle_ContextHelp ); |
142 | nntp.showMaximized(); | 142 | nntp.showMaximized(); |
143 | if ( QDialog::Accepted == nntp.exec() ) { | 143 | if ( QDialog::Accepted == nntp.exec() ) { |
144 | slotFillLists(); | 144 | slotFillLists(); |
145 | } | 145 | } |
146 | } | 146 | } |
147 | } | 147 | } |