author | zautrix <zautrix> | 2004-10-30 11:40:54 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-30 11:40:54 (UTC) |
commit | 632b43950f1ac2980c281eb8901d797deb0ba971 (patch) (side-by-side diff) | |
tree | 72534bf865fbef61a29d5e8b2e65672c15b432c0 /kmicromail/composemail.cpp | |
parent | 0057c2a8e90346583f606491730cae819d2313ac (diff) | |
download | kdepimpi-632b43950f1ac2980c281eb8901d797deb0ba971.zip kdepimpi-632b43950f1ac2980c281eb8901d797deb0ba971.tar.gz kdepimpi-632b43950f1ac2980c281eb8901d797deb0ba971.tar.bz2 |
made ompi compiling on desktop
-rw-r--r-- | kmicromail/composemail.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/kmicromail/composemail.cpp b/kmicromail/composemail.cpp index 8eb6d27..0cd0b23 100644 --- a/kmicromail/composemail.cpp +++ b/kmicromail/composemail.cpp @@ -32,6 +32,6 @@ #ifdef DESKTOP_VERSION +#include <qapplication.h> #include <kabc/addresseedialog.h> -#else //DESKTOP_VERSION -#include <libkdepim/externalapphandler.h> #endif //DESKTOP_VERSION +#include <libkdepim/externalapphandler.h> @@ -116,8 +116,9 @@ ComposeMail::ComposeMail( Settings *s, QWidget *parent, const char *name, bool m icon = SmallIcon("filesave"); - if ( QApplication::desktop()->width() < 320 ) + SaveButton->setIconSet (icon ) ; + if ( QApplication::desktop()->width() < 320 ) { SaveButton->setText ("") ; + SaveButton->setMaximumSize ( SaveButton->sizeHint().height(),SaveButton->sizeHint().height()) ; + } else - SaveButton->setText (i18n("Save")) ; - SaveButton->setIconSet (icon ) ; - SaveButton->setMaximumSize ( SaveButton->sizeHint().height(),SaveButton->sizeHint().height()) ; + SaveButton->setText (i18n("Save")); #ifndef DESKTOP_VERSION |