diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-04-21 23:22:20 +0900 | 
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-04-21 23:22:20 +0900 | 
| commit | dba036816b279bc1539a9f3894fbc414665d2bce (patch) | |
| tree | 29e4bf00bafe515e7afdd02168d65a47a3f9fbc0 /tqtinterface/qt4/plugins/src/imageformats/png/main.cpp | |
| parent | 6f1b4f0c7505a049d992a33f6e409b7c75732d4b (diff) | |
| download | experimental-dba036816b279bc1539a9f3894fbc414665d2bce.tar.gz experimental-dba036816b279bc1539a9f3894fbc414665d2bce.zip | |
Removed unnecessary and/or TDE-unrelated code.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'tqtinterface/qt4/plugins/src/imageformats/png/main.cpp')
| -rw-r--r-- | tqtinterface/qt4/plugins/src/imageformats/png/main.cpp | 76 | 
1 files changed, 0 insertions, 76 deletions
| 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 <tqimageformatplugin.h> - -#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 | 
