summaryrefslogtreecommitdiffstats
path: root/kdeui/tests/kdesattest.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/kdesattest.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/kdesattest.cpp')
-rw-r--r--kdeui/tests/kdesattest.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kdeui/tests/kdesattest.cpp b/kdeui/tests/kdesattest.cpp
index 803e2e0ee..28f7d4cf2 100644
--- a/kdeui/tests/kdesattest.cpp
+++ b/kdeui/tests/kdesattest.cpp
@@ -1,21 +1,21 @@
#include "kdesattest.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
-KDesatWidget::KDesatWidget(QWidget *parent, const char *name)
- :QWidget(parent, name)
+KDesatWidget::KDesatWidget(TQWidget *parent, const char *name)
+ :TQWidget(parent, name)
{
- image = QImage("testimage.png");
+ image = TQImage("testimage.png");
slide = new KDoubleNumInput(700, this, "desat");
slide->setRange(0, 1, 0.001);
slide->setLabel("Desaturate: ", AlignVCenter | AlignLeft);
- connect(slide,SIGNAL(valueChanged(double)), this, SLOT(change(double)));
+ connect(slide,TQT_SIGNAL(valueChanged(double)), this, TQT_SLOT(change(double)));
resize(image.width()*2, image.height() + slide->height());
slide->setGeometry(0, image.height(), image.width()*2, slide->height());
@@ -26,19 +26,19 @@ void KDesatWidget::change(double) {
repaint(false);
}
-void KDesatWidget::paintEvent(QPaintEvent */*ev*/)
+void KDesatWidget::paintEvent(TQPaintEvent */*ev*/)
{
- QTime time;
+ TQTime time;
int it, ft;
- QString say;
+ TQString say;
- QPainter p(this);
+ TQPainter p(this);
p.setPen(Qt::black);
// original image
time.start();
it = time.elapsed();
- image = QImage("testimage.png");
+ image = TQImage("testimage.png");
p.drawImage(0, 0, image);
ft = time.elapsed();
say.setNum( ft - it); say += " ms, Vertical";