From dba036816b279bc1539a9f3894fbc414665d2bce Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 21 Apr 2019 23:22:20 +0900 Subject: Removed unnecessary and/or TDE-unrelated code. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michele Calgaro Signed-off-by: Slávek Banko --- .../qt4/plugins/src/imageformats/png/main.cpp | 76 ---------------------- 1 file changed, 76 deletions(-) delete mode 100644 tqtinterface/qt4/plugins/src/imageformats/png/main.cpp (limited to 'tqtinterface/qt4/plugins/src/imageformats/png/main.cpp') diff --git a/tqtinterface/qt4/plugins/src/imageformats/png/main.cpp b/tqtinterface/qt4/plugins/src/imageformats/png/main.cpp deleted file mode 100644 index 39354b6..0000000 --- a/tqtinterface/qt4/plugins/src/imageformats/png/main.cpp +++ /dev/null @@ -1,76 +0,0 @@ -#ifndef TQT_CLEAN_NAMESPACE -#define TQT_CLEAN_NAMESPACE -#endif -#include - -#ifndef TQT_NO_IMAGEFORMATPLUGIN - -#ifdef TQT_NO_IMAGEIO_PNG -#undef TQT_NO_IMAGEIO_PNG -#endif -#include "../../../../src/kernel/qpngio.cpp" - -class PNGFormat : public TQImageFormatPlugin -{ -public: - PNGFormat(); - - TQStringList keys() const; - bool loadImage( const TQString &format, const TQString &filename, TQImage * ); - bool saveImage( const TQString &format, const TQString &filename, const TQImage& ); - bool installIOHandler( const TQString & ); -}; - -PNGFormat::PNGFormat() -{ -} - - -TQStringList PNGFormat::keys() const -{ - TQStringList list; - list << "PNG"; - - return list; -} - -bool PNGFormat::loadImage( const TQString &format, const TQString &filename, TQImage *image ) -{ - if ( format != "PNG" ) - return FALSE; - - TQImageIO io; - io.setFileName( filename ); - io.setImage( *image ); - - read_png_image( &io ); - - return TRUE; -} - -bool PNGFormat::saveImage( const TQString &format, const TQString &filename, const TQImage &image ) -{ - if ( format != "PNG" ) - return FALSE; - - TQImageIO io; - io.setFileName( filename ); - io.setImage( image ); - - write_png_image( &io ); - - return TRUE; -} - -bool PNGFormat::installIOHandler( const TQString &name ) -{ - if ( name != "PNG" ) - return FALSE; - - qInitPngIO(); - return TRUE; -} - -TQ_EXPORT_PLUGIN( PNGFormat ) - -#endif // TQT_NO_IMAGEFORMATPLUGIN -- cgit v1.2.3