summaryrefslogtreecommitdiffstats
path: root/kdeui/tests/kblendtest.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdeui/tests/kblendtest.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeui/tests/kblendtest.cpp')
-rw-r--r--kdeui/tests/kblendtest.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kdeui/tests/kblendtest.cpp b/kdeui/tests/kblendtest.cpp
index f12d65b2b..e2d36a575 100644
--- a/kdeui/tests/kblendtest.cpp
+++ b/kdeui/tests/kblendtest.cpp
@@ -1,33 +1,33 @@
#include "kblendtest.h"
#include <kapplication.h>
#include <kimageeffect.h>
-#include <qpainter.h>
-#include <qdatetime.h>
-#include <qstring.h>
+#include <tqpainter.h>
+#include <tqdatetime.h>
+#include <tqstring.h>
int cols = 3, rows = 3; // how many
-KBlendWidget::KBlendWidget(QWidget *parent, const char *name)
- :QWidget(parent, name)
+KBlendWidget::KBlendWidget(TQWidget *parent, const char *name)
+ :TQWidget(parent, name)
{
bgnd = qRgb(255, 255, 255);
- image = QImage("testimage.png");
+ image = TQImage("testimage.png");
resize(image.width()*2+60, image.height()*3+80);
setBackgroundColor(bgnd);
}
-void KBlendWidget::paintEvent(QPaintEvent */*ev*/)
+void KBlendWidget::paintEvent(TQPaintEvent */*ev*/)
{
- QTime time;
+ TQTime time;
int it, ft;
- QString say;
+ TQString say;
- image = QImage("testimage.png");
+ image = TQImage("testimage.png");
- QPainter p(this);
+ TQPainter p(this);
p.setPen(Qt::black);
// you see here use of anti_dir param (blend from down to up, here)
@@ -39,7 +39,7 @@ void KBlendWidget::paintEvent(QPaintEvent */*ev*/)
p.drawImage(20, 20, image);
p.drawText(5 , 15, say);
- image = QImage("testimage.png");
+ image = TQImage("testimage.png");
// here a negative initial intensity is used (1/2 of image is unaffected)
it = time.elapsed();
@@ -49,7 +49,7 @@ void KBlendWidget::paintEvent(QPaintEvent */*ev*/)
p.drawImage(40+image.width(), 20, image);
p.drawText(15+image.width() , 15, say);
- image = QImage("testimage.png");
+ image = TQImage("testimage.png");
it = time.elapsed();
KImageEffect::blend(image, 0., bgnd, KImageEffect::DiagonalGradient,true);
@@ -58,7 +58,7 @@ void KBlendWidget::paintEvent(QPaintEvent */*ev*/)
p.drawImage(20, 40+image.height(), image);
p.drawText(5 , 35+image.height(), say);
- image = QImage("testimage.png");
+ image = TQImage("testimage.png");
it = time.elapsed();
KImageEffect::blend(image, 0.1, bgnd, KImageEffect::CrossDiagonalGradient);
@@ -67,7 +67,7 @@ void KBlendWidget::paintEvent(QPaintEvent */*ev*/)
p.drawImage(40+image.width(), 40+image.height(), image);
p.drawText(25+image.width() , 35 + image.height(), say);
- image = QImage("testimage.png");
+ image = TQImage("testimage.png");
it = time.elapsed();
KImageEffect::blend(image, -0.6, bgnd, KImageEffect::RectangleGradient);
@@ -76,7 +76,7 @@ void KBlendWidget::paintEvent(QPaintEvent */*ev*/)
p.drawImage(20, 60+2*image.height(), image);
p.drawText(5 , 55+2*image.height(), say);
- image = QImage("testimage.png");
+ image = TQImage("testimage.png");
it = time.elapsed();
KImageEffect::blend(image, 0.2, bgnd, KImageEffect::EllipticGradient);