summaryrefslogtreecommitdiffstats
path: root/tools/thumbnail/clipartcreator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/thumbnail/clipartcreator.cpp')
-rw-r--r--tools/thumbnail/clipartcreator.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/tools/thumbnail/clipartcreator.cpp b/tools/thumbnail/clipartcreator.cpp
index 73585a97..d1378988 100644
--- a/tools/thumbnail/clipartcreator.cpp
+++ b/tools/thumbnail/clipartcreator.cpp
@@ -18,9 +18,9 @@
* Boston, MA 02110-1301, USA.
*/
-#include <qimage.h>
-#include <qpainter.h>
-#include <qfile.h>
+#include <tqimage.h>
+#include <tqpainter.h>
+#include <tqfile.h>
#include <KoPicture.h>
@@ -35,18 +35,18 @@ extern "C"
}
}
-bool ClipartCreator::create(const QString &path, int width, int height, QImage &img)
+bool ClipartCreator::create(const TQString &path, int width, int height, TQImage &img)
{
- QPixmap pixmap;
+ TQPixmap pixmap;
KoPicture picture;
if (picture.loadFromFile( path ))
{
- pixmap = QPixmap( 200, 200 );
- pixmap.fill( Qt::white );
+ pixmap = TQPixmap( 200, 200 );
+ pixmap.fill( TQt::white );
- QPainter p;
+ TQPainter p;
p.begin( &pixmap );
- p.setBackgroundColor( Qt::white );
+ p.setBackgroundColor( TQt::white );
picture.draw(p, 0, 0, pixmap.width(), pixmap.height());
p.end();