-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 @@ -19,4 +19,5 @@ #include <qcombobox.h> #include <qcheckbox.h> +#include <qiconset.h> #include <qtimer.h> #include <qmessagebox.h> @@ -111,18 +112,31 @@ ComposeMail::ComposeMail( Settings *s, QWidget *parent, const char *name, bool m mMail = 0; warnAttach = true; + QIconSet icon; + //icon = SmallIcon("fileexport"); + icon = SmallIcon("filesave"); + SaveButton->setIconSet (icon ) ; + if ( QApplication::desktop()->width() < 320 ) { + SaveButton->setText ("") ; + SaveButton->setMaximumSize ( SaveButton->sizeHint().height(),SaveButton->sizeHint().height()) ; + } + else + SaveButton->setText (i18n("Save")); +#ifndef DESKTOP_VERSION + QPEApplication::setStylusOperation( message, QPEApplication::RightOnHold ); + QPEApplication::setStylusOperation( senderNameEdit, QPEApplication::RightOnHold ); + QPEApplication::setStylusOperation( subjectLine, QPEApplication::RightOnHold ); +#endif + message->setFont ( KOPrefs::instance()->mComposeFont ); + message->setWordWrap (QMultiLineEdit::WidgetWidth); if ( smtpAccounts.count() > 0 ) { fillValues( smtpAccountBox->currentItem() ); } else { QMessageBox::information( 0, i18n( "Problem" ), - i18n( "Please create an SMTP account first.\nThe SMTP is needed for sending mail.\n" ), + i18n( "Please create an\nSMTP account first.\nThe SMTP is needed\nfor sending mail.\n" ), i18n( "Ok" ) ); return; - } + } connect( smtpAccountBox, SIGNAL( activated(int) ), SLOT( fillValues(int) ) ); - message->setFont ( KOPrefs::instance()->mComposeFont ); - message->setWordWrap (QMultiLineEdit::WidgetWidth); -#ifndef DESKTOP_VERSION - QPEApplication::setStylusOperation( message, QPEApplication::RightOnHold ); -#endif + } |