diff options
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 |