author | zautrix <zautrix> | 2004-10-23 19:32:41 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-23 19:32:41 (UTC) |
commit | 94df6192e59b7d4c69e2fb43ef2c39db08bb1c39 (patch) (unidiff) | |
tree | 28956adbf73a61010d98deb27d83b324cb285471 /kmicromail/selectsmtp.cpp | |
parent | 52b6fc17c0dcd1f13f701f698e0305440f26fc3e (diff) | |
download | kdepimpi-94df6192e59b7d4c69e2fb43ef2c39db08bb1c39.zip kdepimpi-94df6192e59b7d4c69e2fb43ef2c39db08bb1c39.tar.gz kdepimpi-94df6192e59b7d4c69e2fb43ef2c39db08bb1c39.tar.bz2 |
compile fixes
-rw-r--r-- | kmicromail/selectsmtp.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kmicromail/selectsmtp.cpp b/kmicromail/selectsmtp.cpp index 24eced1..ff8b524 100644 --- a/kmicromail/selectsmtp.cpp +++ b/kmicromail/selectsmtp.cpp | |||
@@ -1,63 +1,64 @@ | |||
1 | #include "selectsmtp.h" | 1 | #include "selectsmtp.h" |
2 | #include <libmailwrapper/mailwrapper.h> | 2 | #include <libmailwrapper/mailwrapper.h> |
3 | 3 | ||
4 | #include <qcombobox.h> | 4 | #include <qcombobox.h> |
5 | #include <qcheckbox.h> | 5 | #include <qcheckbox.h> |
6 | #include <qmessagebox.h> | 6 | #include <qmessagebox.h> |
7 | #include <qpushbutton.h> | 7 | #include <qpushbutton.h> |
8 | #include <qlineedit.h> | 8 | #include <qlineedit.h> |
9 | #include <qlabel.h> | 9 | #include <qlabel.h> |
10 | #include <qtabwidget.h> | 10 | #include <qtabwidget.h> |
11 | #include <qlistview.h> | 11 | #include <qlistview.h> |
12 | #include <klocale.h> | ||
12 | selectsmtp::selectsmtp(QWidget* parent, const char* name, bool modal, WFlags fl) | 13 | selectsmtp::selectsmtp(QWidget* parent, const char* name, bool modal, WFlags fl) |
13 | : selectstoreui(parent,name,modal,fl) | 14 | : selectstoreui(parent,name,modal,fl) |
14 | { | 15 | { |
15 | //m_smtpList.setAutoDelete(false); | 16 | //m_smtpList.setAutoDelete(false); |
16 | m_smtpList = 0; | 17 | m_smtpList = 0; |
17 | //headlabel->setText(tr("<center>Select SMTP account to use</center>")); | 18 | //headlabel->setText(i18n("<center>Select SMTP account to use</center>")); |
18 | headlabel->hide(); | 19 | headlabel->hide(); |
19 | folderSelection->hide(); | 20 | folderSelection->hide(); |
20 | folderLabel->hide(); | 21 | folderLabel->hide(); |
21 | accountlabel->setText("<center>SMTP Accounts</center>"); | 22 | accountlabel->setText("<center>SMTP Accounts</center>"); |
22 | Line1->hide(); | 23 | Line1->hide(); |
23 | newFoldersel->hide(); | 24 | newFoldersel->hide(); |
24 | newFolderedit->hide(); | 25 | newFolderedit->hide(); |
25 | newFolderLabel->hide(); | 26 | newFolderLabel->hide(); |
26 | Line2->hide(); | 27 | Line2->hide(); |
27 | selMove->hide(); | 28 | selMove->hide(); |
28 | m_current_smtp = 0; | 29 | m_current_smtp = 0; |
29 | setCaption(tr("Select SMTP Account")); | 30 | setCaption(i18n("Select SMTP Account")); |
30 | } | 31 | } |
31 | 32 | ||
32 | selectsmtp::~selectsmtp() | 33 | selectsmtp::~selectsmtp() |
33 | { | 34 | { |
34 | } | 35 | } |
35 | 36 | ||
36 | void selectsmtp::slotAccountselected(int which) | 37 | void selectsmtp::slotAccountselected(int which) |
37 | { | 38 | { |
38 | if (!m_smtpList || (unsigned)which>=m_smtpList->count() || which < 0) { | 39 | if (!m_smtpList || (unsigned)which>=m_smtpList->count() || which < 0) { |
39 | m_current_smtp = 0; | 40 | m_current_smtp = 0; |
40 | return; | 41 | return; |
41 | } | 42 | } |
42 | m_current_smtp = m_smtpList->at(which); | 43 | m_current_smtp = m_smtpList->at(which); |
43 | } | 44 | } |
44 | 45 | ||
45 | void selectsmtp::setSelectionlist(QList<SMTPaccount>*list) | 46 | void selectsmtp::setSelectionlist(QList<SMTPaccount>*list) |
46 | { | 47 | { |
47 | m_smtpList = list; | 48 | m_smtpList = list; |
48 | accountSelection->clear(); | 49 | accountSelection->clear(); |
49 | if (!m_smtpList || m_smtpList->count()==0) { | 50 | if (!m_smtpList || m_smtpList->count()==0) { |
50 | accountSelection->setEnabled(false); | 51 | accountSelection->setEnabled(false); |
51 | return; | 52 | return; |
52 | } | 53 | } |
53 | accountSelection->setEnabled(true); | 54 | accountSelection->setEnabled(true); |
54 | for (unsigned i = 0; m_smtpList!=0 && i < m_smtpList->count(); ++i) { | 55 | for (unsigned i = 0; m_smtpList!=0 && i < m_smtpList->count(); ++i) { |
55 | accountSelection->insertItem( m_smtpList->at(i)->getAccountName()); | 56 | accountSelection->insertItem( m_smtpList->at(i)->getAccountName()); |
56 | } | 57 | } |
57 | m_current_smtp = m_smtpList->at(0); | 58 | m_current_smtp = m_smtpList->at(0); |
58 | } | 59 | } |
59 | 60 | ||
60 | SMTPaccount*selectsmtp::selected_smtp() | 61 | SMTPaccount*selectsmtp::selected_smtp() |
61 | { | 62 | { |
62 | return m_current_smtp; | 63 | return m_current_smtp; |
63 | } | 64 | } |