-rw-r--r-- | kmicromail/composemail.cpp | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/kmicromail/composemail.cpp b/kmicromail/composemail.cpp index 9b799b3..e6f7daa 100644 --- a/kmicromail/composemail.cpp +++ b/kmicromail/composemail.cpp | |||
@@ -14,3 +14,2 @@ | |||
14 | //#include <qpe/resource.h> | 14 | //#include <qpe/resource.h> |
15 | #include <qpe/config.h> | ||
16 | #include <qpe/global.h> | 15 | #include <qpe/global.h> |
@@ -37,2 +36,3 @@ | |||
37 | 36 | ||
37 | #include "koprefs.h" | ||
38 | 38 | ||
@@ -43,3 +43,2 @@ ComposeMail::ComposeMail( Settings *s, QWidget *parent, const char *name, bool m | |||
43 | { | 43 | { |
44 | |||
45 | mPickLineEdit = 0; | 44 | mPickLineEdit = 0; |
@@ -49,2 +48,3 @@ ComposeMail::ComposeMail( Settings *s, QWidget *parent, const char *name, bool m | |||
49 | m_replyid = ""; | 48 | m_replyid = ""; |
49 | if ( KOPrefs::instance()->mUseKapi) { | ||
50 | KConfig config( locateLocal("config", "kabcrc") ); | 50 | KConfig config( locateLocal("config", "kabcrc") ); |
@@ -58,2 +58,4 @@ ComposeMail::ComposeMail( Settings *s, QWidget *parent, const char *name, bool m | |||
58 | 58 | ||
59 | |||
60 | fillSettings(); | ||
59 | } else | 61 | } else |
@@ -81,5 +83,7 @@ ComposeMail::ComposeMail( Settings *s, QWidget *parent, const char *name, bool m | |||
81 | #endif | 83 | #endif |
82 | Config cfg( "mail" ); | 84 | |
83 | cfg.setGroup( "Compose" ); | 85 | } else { |
84 | checkBoxLater->setChecked( cfg.readBoolEntry( "sendLater", false ) ); | 86 | fillSettings(); |
87 | } | ||
88 | checkBoxLater->setChecked( KOPrefs::instance()->mSendLater ); | ||
85 | 89 | ||
@@ -89,2 +93,4 @@ ComposeMail::ComposeMail( Settings *s, QWidget *parent, const char *name, bool m | |||
89 | 93 | ||
94 | if ( QApplication::desktop()->width() < 320 ) | ||
95 | smtpAccountBox->setMaximumWidth( 80 ); | ||
90 | Account *it; | 96 | Account *it; |
@@ -115,5 +121,17 @@ ComposeMail::ComposeMail( Settings *s, QWidget *parent, const char *name, bool m | |||
115 | connect( smtpAccountBox, SIGNAL( activated(int) ), SLOT( fillValues(int) ) ); | 121 | connect( smtpAccountBox, SIGNAL( activated(int) ), SLOT( fillValues(int) ) ); |
116 | 122 | message->setFont ( KOPrefs::instance()->mComposeFont ); | |
117 | } | 123 | } |
118 | 124 | ||
125 | void ComposeMail::fillSettings() | ||
126 | { | ||
127 | if ( QApplication::desktop()->width() < 320 ) | ||
128 | fromBox->setMaximumWidth( 100 ); | ||
129 | QStringList mailList = QStringList::split(";",KOPrefs::instance()->mEmail); | ||
130 | QStringList::ConstIterator sit = mailList.begin(); | ||
131 | int pref = 0; | ||
132 | for (;sit!=mailList.end();++sit) { | ||
133 | fromBox->insertItem((*sit)); | ||
134 | } | ||
135 | senderNameEdit->setText(KOPrefs::instance()->mName); | ||
136 | } | ||
119 | 137 | ||