author | zautrix <zautrix> | 2004-10-25 23:39:31 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-25 23:39:31 (UTC) |
commit | e7c948b76a46c923c21f2f35c677912b462fa1f4 (patch) (unidiff) | |
tree | a9f9a0c696ea3809f2e0bfc27e643d70c4e123e3 /kmicromail/composemail.cpp | |
parent | 86ad7f5fe2a20f9dfd37d6891b57b326f8ee507b (diff) | |
download | kdepimpi-e7c948b76a46c923c21f2f35c677912b462fa1f4.zip kdepimpi-e7c948b76a46c923c21f2f35c677912b462fa1f4.tar.gz kdepimpi-e7c948b76a46c923c21f2f35c677912b462fa1f4.tar.bz2 |
kopiemail fixes
-rw-r--r-- | kmicromail/composemail.cpp | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/kmicromail/composemail.cpp b/kmicromail/composemail.cpp index 35ad367..5f7a76f 100644 --- a/kmicromail/composemail.cpp +++ b/kmicromail/composemail.cpp | |||
@@ -15,12 +15,13 @@ | |||
15 | #include <qpe/global.h> | 15 | #include <qpe/global.h> |
16 | //#include <qpe/contact.h> | 16 | //#include <qpe/contact.h> |
17 | 17 | ||
18 | 18 | ||
19 | #include <qcombobox.h> | 19 | #include <qcombobox.h> |
20 | #include <qcheckbox.h> | 20 | #include <qcheckbox.h> |
21 | #include <qiconset.h> | ||
21 | #include <qtimer.h> | 22 | #include <qtimer.h> |
22 | #include <qmessagebox.h> | 23 | #include <qmessagebox.h> |
23 | #include <qpushbutton.h> | 24 | #include <qpushbutton.h> |
24 | #include <qmultilineedit.h> | 25 | #include <qmultilineedit.h> |
25 | #include <qlabel.h> | 26 | #include <qlabel.h> |
26 | #include <qtabwidget.h> | 27 | #include <qtabwidget.h> |
@@ -107,26 +108,39 @@ ComposeMail::ComposeMail( Settings *s, QWidget *parent, const char *name, bool m | |||
107 | connect( replyButton, SIGNAL( clicked() ), SLOT( pickAddressReply() ) ); | 108 | connect( replyButton, SIGNAL( clicked() ), SLOT( pickAddressReply() ) ); |
108 | connect( addButton, SIGNAL( clicked() ), SLOT( addAttachment() ) ); | 109 | connect( addButton, SIGNAL( clicked() ), SLOT( addAttachment() ) ); |
109 | connect( deleteButton, SIGNAL( clicked() ), SLOT( removeAttachment() ) ); | 110 | connect( deleteButton, SIGNAL( clicked() ), SLOT( removeAttachment() ) ); |
110 | connect( SaveButton, SIGNAL( clicked() ), SLOT( saveAsDraft()) ); | 111 | connect( SaveButton, SIGNAL( clicked() ), SLOT( saveAsDraft()) ); |
111 | mMail = 0; | 112 | mMail = 0; |
112 | warnAttach = true; | 113 | warnAttach = true; |
114 | QIconSet icon; | ||
115 | //icon = SmallIcon("fileexport"); | ||
116 | icon = SmallIcon("filesave"); | ||
117 | SaveButton->setIconSet (icon ) ; | ||
118 | if ( QApplication::desktop()->width() < 320 ) { | ||
119 | SaveButton->setText ("") ; | ||
120 | SaveButton->setMaximumSize ( SaveButton->sizeHint().height(),SaveButton->sizeHint().height()) ; | ||
121 | } | ||
122 | else | ||
123 | SaveButton->setText (i18n("Save")); | ||
124 | #ifndef DESKTOP_VERSION | ||
125 | QPEApplication::setStylusOperation( message, QPEApplication::RightOnHold ); | ||
126 | QPEApplication::setStylusOperation( senderNameEdit, QPEApplication::RightOnHold ); | ||
127 | QPEApplication::setStylusOperation( subjectLine, QPEApplication::RightOnHold ); | ||
128 | #endif | ||
129 | message->setFont ( KOPrefs::instance()->mComposeFont ); | ||
130 | message->setWordWrap (QMultiLineEdit::WidgetWidth); | ||
113 | if ( smtpAccounts.count() > 0 ) { | 131 | if ( smtpAccounts.count() > 0 ) { |
114 | fillValues( smtpAccountBox->currentItem() ); | 132 | fillValues( smtpAccountBox->currentItem() ); |
115 | } else { | 133 | } else { |
116 | QMessageBox::information( 0, i18n( "Problem" ), | 134 | QMessageBox::information( 0, i18n( "Problem" ), |
117 | i18n( "Please create an SMTP account first.\nThe SMTP is needed for sending mail.\n" ), | 135 | i18n( "Please create an\nSMTP account first.\nThe SMTP is needed\nfor sending mail.\n" ), |
118 | i18n( "Ok" ) ); | 136 | i18n( "Ok" ) ); |
119 | return; | 137 | return; |
120 | } | 138 | } |
121 | connect( smtpAccountBox, SIGNAL( activated(int) ), SLOT( fillValues(int) ) ); | 139 | connect( smtpAccountBox, SIGNAL( activated(int) ), SLOT( fillValues(int) ) ); |
122 | message->setFont ( KOPrefs::instance()->mComposeFont ); | 140 | |
123 | message->setWordWrap (QMultiLineEdit::WidgetWidth); | ||
124 | #ifndef DESKTOP_VERSION | ||
125 | QPEApplication::setStylusOperation( message, QPEApplication::RightOnHold ); | ||
126 | #endif | ||
127 | 141 | ||
128 | } | 142 | } |
129 | 143 | ||
130 | void ComposeMail::fillSettings() | 144 | void ComposeMail::fillSettings() |
131 | { | 145 | { |
132 | if ( QApplication::desktop()->width() < 320 ) | 146 | if ( QApplication::desktop()->width() < 320 ) |