diff options
Diffstat (limited to 'src/modules/theme/savethemedialog.cpp')
| -rw-r--r-- | src/modules/theme/savethemedialog.cpp | 44 |
1 files changed, 16 insertions, 28 deletions
diff --git a/src/modules/theme/savethemedialog.cpp b/src/modules/theme/savethemedialog.cpp index a98780a7d..0732bd322 100644 --- a/src/modules/theme/savethemedialog.cpp +++ b/src/modules/theme/savethemedialog.cpp @@ -25,27 +25,6 @@ #include "savethemedialog.h" #include "themefunctions.h" -#include <qlayout.h> -#include <qpushbutton.h> -#include <qlineedit.h> -#include <qregexp.h> -#include <qmessagebox.h> -#include <qdir.h> -#include <qcombobox.h> -#include <qpainter.h> -#include <qtooltip.h> -#include <qimage.h> -#include <kvi_tal_textedit.h> -#ifdef COMPILE_USE_QT4 -#include <q3multilineedit.h> -#include <QDateTime> -#else -#include <qmultilineedit.h> -#endif -#include <qbuffer.h> -#include <qlabel.h> - - #include "kvi_options.h" #include "kvi_locale.h" #include "kvi_config.h" @@ -61,7 +40,23 @@ #include "kvi_selectors.h" #include "kvi_miscutils.h" #include "kvi_sourcesdate.h" +#include <kvi_tal_textedit.h> +#include <QLayout> +#include <QPushButton> +#include <QLineEdit> +#include <QRegExp> +#include <QMessageBox> +#include <QDir> +#include <QComboBox> +#include <QPainter> +#include <QToolTip> +#include <QImage> +#include <QDateTime> +#include <QBuffer> +#include <QLabel> + +#include <q3multilineedit.h> KviSaveThemeDialog::KviSaveThemeDialog(QWidget * pParent) @@ -192,11 +187,7 @@ void KviSaveThemeDialog::imageSelectionChanged(const QString &szImagePath) { QPixmap out; if(pix.width() > 300 || pix.height() > 225) - #ifdef COMPILE_USE_QT4 out.convertFromImage(pix.scaled(300,225,Qt::KeepAspectRatio)); - #else - out.convertFromImage(pix.smoothScale(300,225,QImage::ScaleMin)); -#endif else out.convertFromImage(pix); m_pImageLabel->setPixmap(out); @@ -210,14 +201,12 @@ void KviSaveThemeDialog::imageSelectionChanged(const QString &szImagePath) m_pImageLabel->setPixmap(QPixmap()); } - void KviSaveThemeDialog::accept() { if(!saveTheme())return; KviTalWizard::accept(); } - void KviSaveThemeDialog::makeScreenshot() { QString szFileName; @@ -298,4 +287,3 @@ bool KviSaveThemeDialog::saveTheme() return true; } - |
