diff options
author | Michele Calgaro <[email protected]> | 2023-08-24 21:28:39 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-08-31 16:31:47 +0900 |
commit | 7c3b44b81086c6b99f91e294c3b438dc808b47e2 (patch) | |
tree | d92d61649487df1a2fbd200d4ead11a7f16ba63f /src/modules/theme/packthemedialog.cpp | |
parent | cafbffba66b6ce809783ed1eb4d24aac6fe9701f (diff) | |
download | kvirc-7c3b44b81086c6b99f91e294c3b438dc808b47e2.tar.gz kvirc-7c3b44b81086c6b99f91e294c3b438dc808b47e2.zip |
Drop USE_QT4 code
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit 030a2248f3630fd0404df98beffc78b5b5ca4c31)
Diffstat (limited to 'src/modules/theme/packthemedialog.cpp')
-rw-r--r-- | src/modules/theme/packthemedialog.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/modules/theme/packthemedialog.cpp b/src/modules/theme/packthemedialog.cpp index 269fbfe9..7ae09b77 100644 --- a/src/modules/theme/packthemedialog.cpp +++ b/src/modules/theme/packthemedialog.cpp @@ -36,12 +36,7 @@ #include <tqtooltip.h> #include <tqimage.h> #include <kvi_tal_textedit.h> -#ifdef COMPILE_USE_QT4 -#include <tq3multilineedit.h> -#include <TQDateTime> -#else #include <tqmultilineedit.h> -#endif #include <tqbuffer.h> #include <tqlabel.h> #include <tqregexp.h> @@ -333,11 +328,7 @@ void KviPackThemeDialog::imageSelectionChanged(const TQString &szImagePath) { TQPixmap out; if(pix.width() > 300 || pix.height() > 225) -#ifdef COMPILE_USE_QT4 - out.convertFromImage(pix.scaled(300,225,TQt::KeepAspectRatio,TQt::SmoothTransformation)); -#else out.convertFromImage(pix.smoothScale(300,225,TQ_ScaleMin)); -#endif else out.convertFromImage(pix); m_pImageLabel->setPixmap(out); @@ -374,11 +365,7 @@ bool KviPackThemeDialog::packTheme() if(!pix.isNull()) { if(pix.width() > 300 || pix.height() > 225) - #ifdef COMPILE_USE_QT4 - out.convertFromImage(pix.scaled(300,225,TQt::KeepAspectRatio)); - #else out.convertFromImage(pix.smoothScale(300,225,TQ_ScaleMin)); -#endif else out.convertFromImage(pix); } else { @@ -407,11 +394,7 @@ bool KviPackThemeDialog::packTheme() if(!out.isNull()) { TQByteArray * pba = new TQByteArray(); -#ifdef COMPILE_USE_QT4 - TQBuffer buffer(pba,0); -#else TQBuffer buffer(*pba); -#endif buffer.open(IO_WriteOnly); out.save(&buffer,"PNG"); buffer.close(); @@ -445,11 +428,7 @@ bool KviPackThemeDialog::packTheme() { KviTQString::sprintf(szTmp,"Theme%dScreenshot",iIdx); TQByteArray * pba = new TQByteArray(); -#ifdef COMPILE_USE_QT4 - TQBuffer bufferz(pba,0); -#else TQBuffer bufferz(*pba); -#endif bufferz.open(IO_WriteOnly); pixScreenshot.save(&bufferz,"PNG"); bufferz.close(); |