aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/theme/savethemedialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/theme/savethemedialog.cpp')
-rw-r--r--src/modules/theme/savethemedialog.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/modules/theme/savethemedialog.cpp b/src/modules/theme/savethemedialog.cpp
index b40620c54..62ca0116e 100644
--- a/src/modules/theme/savethemedialog.cpp
+++ b/src/modules/theme/savethemedialog.cpp
@@ -36,7 +36,12 @@
#include <qtooltip.h>
#include <qimage.h>
#include <kvi_tal_textedit.h>
+#ifdef COMPILE_USE_QT4
+#include <Q3MultiLineEdit>
+#include <QDateTime>
+#else
#include <qmultilineedit.h>
+#endif
#include <qbuffer.h>
#include <qlabel.h>
@@ -187,7 +192,11 @@ 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);