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/reguser/dialog.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/reguser/dialog.cpp')
-rw-r--r-- | src/modules/reguser/dialog.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/modules/reguser/dialog.cpp b/src/modules/reguser/dialog.cpp index 199f87af..b6741470 100644 --- a/src/modules/reguser/dialog.cpp +++ b/src/modules/reguser/dialog.cpp @@ -42,15 +42,7 @@ #include <tqlayout.h> #include <tqlabel.h> -#ifdef COMPILE_USE_QT4 -#include <tq3header.h> -#include <tqevent.h> -#include <TQImageWriter> -#include <TQImageReader> - -#else #include <tqheader.h> -#endif #include "kvi_pointerhashtable.h" #include <tqimage.h> #include <tqstring.h> @@ -740,18 +732,11 @@ void KviRegisteredUsersDialog::exportClicked() if(!av->pixmap()->isNull()) { if(!f.save(1))goto write_error; -#ifdef COMPILE_USE_QT4 - TQImageWriter io; - io.setDevice(&f); - io.setFormat("PNG"); - if(!io.write(av->pixmap()->convertToImage()))goto write_error; -#else TQImageIO io; io.setImage(av->pixmap()->convertToImage()); io.setIODevice(TQT_TQIODEVICE(&f)); io.setFormat("PNG"); if(!io.write())goto write_error; -#endif } else { if(!f.save(0))goto write_error; } @@ -845,14 +830,6 @@ void KviRegisteredUsersDialog::importClicked() { // there is an avatar TQImage img; -#ifdef COMPILE_USE_QT4 - TQImageReader io; - io.setDevice(&f); - io.setFormat("PNG"); - img=io.read(); -// if(io.read())goto read_error; - -#else TQImageIO io; io.setImage(img); io.setIODevice(TQT_TQIODEVICE(&f)); @@ -861,7 +838,6 @@ void KviRegisteredUsersDialog::importClicked() if(!io.read())goto read_error; img = io.image(); -#endif if(img.isNull())tqDebug("Ops.. readed a null image ?"); KviStr fName = u->name(); @@ -898,6 +874,3 @@ succesfull_import: f.close(); fillList(); } -#if defined(COMPILE_USE_QT4) && defined(COMPILE_ON_WINDOWS) -#include "dialog.moc" -#endif |