summaryrefslogtreecommitdiffstats
path: root/kdeui/tests/khashtest.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/khashtest.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/khashtest.cpp')
-rw-r--r--kdeui/tests/khashtest.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kdeui/tests/khashtest.cpp b/kdeui/tests/khashtest.cpp
index 1065bef1a..2f00c9296 100644
--- a/kdeui/tests/khashtest.cpp
+++ b/kdeui/tests/khashtest.cpp
@@ -2,25 +2,25 @@
#include <kapplication.h>
#include <kpixmapeffect.h>
#include <kimageeffect.h>
-#include <qpainter.h>
-#include <qdatetime.h>
-#include <qstring.h>
-#include <qimage.h>
+#include <tqpainter.h>
+#include <tqdatetime.h>
+#include <tqstring.h>
+#include <tqimage.h>
int cols = 3, rows = 3; // how many
-void KHashWidget::paintEvent(QPaintEvent * /*ev*/)
+void KHashWidget::paintEvent(TQPaintEvent * /*ev*/)
{
- QTime time;
+ TQTime time;
int it, ft;
- QString say;
+ TQString say;
- QColor cb = QColor(0,70,70), ca = QColor(80,200,200);
+ TQColor cb = TQColor(0,70,70), ca = TQColor(80,200,200);
int x = 0, y = 0;
pix.resize(width()/cols, height()/rows);
- QPainter p(this);
+ TQPainter p(this);
p.setPen(Qt::white);
// draw once, so that the benchmarking be fair :-)
@@ -77,7 +77,7 @@ void KHashWidget::paintEvent(QPaintEvent * /*ev*/)
p.drawText(5+(x++)*width()/cols, 15+y*height()/rows, say);
- QImage image = QImage("testimage.png");
+ TQImage image = TQImage("testimage.png");
it = time.elapsed();
KImageEffect::hash(image, KImageEffect::WestLite, 2);
ft = time.elapsed();