summaryrefslogtreecommitdiffstats
path: root/krename/pictureplugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'krename/pictureplugin.cpp')
-rw-r--r--krename/pictureplugin.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/krename/pictureplugin.cpp b/krename/pictureplugin.cpp
index d0a0bc3..a6387ae 100644
--- a/krename/pictureplugin.cpp
+++ b/krename/pictureplugin.cpp
@@ -18,7 +18,7 @@
#include "pictureplugin.h"
// QT includes
-#include <qimage.h>
+#include <tqimage.h>
// KDE includes
#include <kapplication.h>
@@ -36,51 +36,51 @@ PicturePlugin::PicturePlugin()
m_icon = "image";
}
-const QString PicturePlugin::getName() const
+const TQString PicturePlugin::getName() const
{
return i18n("Picture Plugin");
}
-const QString PicturePlugin::getAccelName() const
+const TQString PicturePlugin::getAccelName() const
{
return i18n("P&icture Plugin");
}
-const QString PicturePlugin::getPattern() const
+const TQString PicturePlugin::getPattern() const
{
return "pic";
}
-QString PicturePlugin::processFile( BatchRenamer* b, int i, QString token, int )
+TQString PicturePlugin::processFile( BatchRenamer* b, int i, TQString token, int )
{
- QString resolution;
- QString xres;
- QString yres;
- QString bitdepth;
+ TQString resolution;
+ TQString xres;
+ TQString yres;
+ TQString bitdepth;
- QString filename = BatchRenamer::buildFilename( &b->files()[i].src );
+ TQString filename = BatchRenamer::buildFilename( &b->files()[i].src );
token = token.lower();
/*
* Check if we have something cached for this file
*/
- if( cache.contains( filename + "::" + token ) )
+ if( cache.tqcontains( filename + "::" + token ) )
return cache[filename + "::" + token ];
- QImage img( filename );
+ TQImage img( filename );
if( img.isNull() )
- return QString::null;
+ return TQString();
- resolution = QString( "%1x%2" ).arg(img.width()).arg(img.height());
- xres = QString::number( img.width() );
- yres = QString::number( img.height() );
- bitdepth = QString::number( img.depth() );
+ resolution = TQString( "%1x%2" ).tqarg(img.width()).tqarg(img.height());
+ xres = TQString::number( img.width() );
+ yres = TQString::number( img.height() );
+ bitdepth = TQString::number( img.depth() );
if( cache.count() >= CACHE_MAX )
cache.remove( cache.begin() );
- QString ret = QString::null;
+ TQString ret = TQString();
if( token == getPattern() + "resolution" )
ret = resolution;