author | zautrix <zautrix> | 2004-10-25 23:39:31 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-25 23:39:31 (UTC) |
commit | e7c948b76a46c923c21f2f35c677912b462fa1f4 (patch) (side-by-side diff) | |
tree | a9f9a0c696ea3809f2e0bfc27e643d70c4e123e3 /kmicromail | |
parent | 86ad7f5fe2a20f9dfd37d6891b57b326f8ee507b (diff) | |
download | kdepimpi-e7c948b76a46c923c21f2f35c677912b462fa1f4.zip kdepimpi-e7c948b76a46c923c21f2f35c677912b462fa1f4.tar.gz kdepimpi-e7c948b76a46c923c21f2f35c677912b462fa1f4.tar.bz2 |
kopiemail fixes
-rw-r--r-- | kmicromail/composemail.cpp | 26 | ||||
-rw-r--r-- | kmicromail/composemailui.ui | 4 | ||||
-rw-r--r-- | kmicromail/selectstoreui.ui | 8 |
3 files changed, 26 insertions, 12 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 @@ #include <qpe/global.h> //#include <qpe/contact.h> #include <qcombobox.h> #include <qcheckbox.h> +#include <qiconset.h> #include <qtimer.h> #include <qmessagebox.h> #include <qpushbutton.h> #include <qmultilineedit.h> #include <qlabel.h> #include <qtabwidget.h> @@ -107,26 +108,39 @@ ComposeMail::ComposeMail( Settings *s, QWidget *parent, const char *name, bool m connect( replyButton, SIGNAL( clicked() ), SLOT( pickAddressReply() ) ); connect( addButton, SIGNAL( clicked() ), SLOT( addAttachment() ) ); connect( deleteButton, SIGNAL( clicked() ), SLOT( removeAttachment() ) ); connect( SaveButton, SIGNAL( clicked() ), SLOT( saveAsDraft()) ); 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 + } void ComposeMail::fillSettings() { if ( QApplication::desktop()->width() < 320 ) diff --git a/kmicromail/composemailui.ui b/kmicromail/composemailui.ui index 0a5a750..c66b0c8 100644 --- a/kmicromail/composemailui.ui +++ b/kmicromail/composemailui.ui @@ -10,13 +10,13 @@ <property stdset="1"> <name>geometry</name> <rect> <x>0</x> <y>0</y> <width>276</width> - <height>262</height> + <height>263</height> </rect> </property> <property stdset="1"> <name>caption</name> <string>Compose Message</string> </property> @@ -444,13 +444,13 @@ <property stdset="1"> <name>name</name> <cstring>SaveButton</cstring> </property> <property stdset="1"> <name>text</name> - <string>Save</string> + <string> S</string> </property> </widget> </grid> </widget> <tabstops> <tabstop>fromBox</tabstop> diff --git a/kmicromail/selectstoreui.ui b/kmicromail/selectstoreui.ui index 2da103b..89f6ebc 100644 --- a/kmicromail/selectstoreui.ui +++ b/kmicromail/selectstoreui.ui @@ -9,14 +9,14 @@ </property> <property stdset="1"> <name>geometry</name> <rect> <x>0</x> <y>0</y> - <width>279</width> - <height>304</height> + <width>230</width> + <height>307</height> </rect> </property> <property stdset="1"> <name>caption</name> <string>Select target box</string> </property> @@ -179,13 +179,13 @@ <property stdset="1"> <name>name</name> <cstring>newFolderLabel</cstring> </property> <property stdset="1"> <name>text</name> - <string>Prefix will prepend, no need to enter it!</string> + <string>Prefix will prepend, do not enter</string> </property> <property stdset="1"> <name>alignment</name> <set>WordBreak|AlignCenter</set> </property> <property> @@ -243,13 +243,13 @@ <property stdset="1"> <name>name</name> <cstring>useSize</cstring> </property> <property stdset="1"> <name>text</name> - <string>apply only to mails smaller</string> + <string>only mails smaller</string> </property> </widget> <widget row="7" column="1" > <class>QSpinBox</class> <property stdset="1"> <name>name</name> |