From ffe8a83e053396df448e9413828527613ca3bd46 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:46:43 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdeui/tests/khashtest.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'kdeui/tests/khashtest.cpp') 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 #include #include -#include -#include -#include -#include +#include +#include +#include +#include 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(); -- cgit v1.2.3