diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
commit | 9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch) | |
tree | c81c34dae2b3b1ea73801bf18a960265dc4207f7 /kdejava/koala/test/kblend/KBlendTest.java | |
parent | 1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff) | |
download | tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip |
Initial TQt conversion
Diffstat (limited to 'kdejava/koala/test/kblend/KBlendTest.java')
-rw-r--r-- | kdejava/koala/test/kblend/KBlendTest.java | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kdejava/koala/test/kblend/KBlendTest.java b/kdejava/koala/test/kblend/KBlendTest.java index 67080049..2c5dd7be 100644 --- a/kdejava/koala/test/kblend/KBlendTest.java +++ b/kdejava/koala/test/kblend/KBlendTest.java @@ -34,34 +34,34 @@ public class KBlendTest { } - public static class KBlendWidget extends QWidget { + public static class KBlendWidget extends TQWidget { - QImage image; - QColor bgnd; + TQImage image; + TQColor bgnd; String testImage = "testimage.png"; - public KBlendWidget (QWidget parent, String name) { + public KBlendWidget (TQWidget parent, String name) { // change the colors to see the effects. -// bgnd = new QColor(QColor.qRgb(255, 255, 255)); +// bgnd = new TQColor(TQColor.qRgb(255, 255, 255)); bgnd = Qt.blue(); // bgnd = Qt.red(); - image = new QImage(testImage); + image = new TQImage(testImage); resize(image.width()*2+60, image.height()*3+80); setBackgroundColor(bgnd); } - protected void paintEvent(QPaintEvent pe ) { + protected void paintEvent(TQPaintEvent pe ) { long it, ft; String say = ""; - image = new QImage(testImage); + image = new TQImage(testImage); - QPainter p = new QPainter(this); + TQPainter p = new TQPainter(this); p.setPen(Qt.black()); @@ -73,7 +73,7 @@ public class KBlendTest { p.drawImage(20, 20, image); p.drawText(5 , 15, say); - image = new QImage(testImage); + image = new TQImage(testImage); // here a negative initial intensity is used (1/2 of image is unaffected) it = System.currentTimeMillis(); @@ -83,7 +83,7 @@ public class KBlendTest { p.drawImage(40+image.width(), 20, image); p.drawText(15+image.width() , 15, say); - image = new QImage(testImage); + image = new TQImage(testImage); it = System.currentTimeMillis(); KImageEffect.blend(image, 0.0f, bgnd, KImageEffect.DiagonalGradient,true); @@ -92,7 +92,7 @@ public class KBlendTest { p.drawImage(20, 40+image.height(), image); p.drawText(5 , 35+image.height(), say); - image = new QImage(testImage); + image = new TQImage(testImage); it = System.currentTimeMillis(); KImageEffect.blend(image, 0.1f, bgnd, KImageEffect.CrossDiagonalGradient); @@ -101,7 +101,7 @@ public class KBlendTest { p.drawImage(40+image.width(), 40+image.height(), image); p.drawText(25+image.width() , 35 + image.height(), say); - image = new QImage(testImage); + image = new TQImage(testImage); it = System.currentTimeMillis(); KImageEffect.blend(image, -0.6f, bgnd, KImageEffect.RectangleGradient); @@ -110,7 +110,7 @@ public class KBlendTest { p.drawImage(20, 60+2*image.height(), image); p.drawText(5 , 55+2*image.height(), say); - image = new QImage(testImage); + image = new TQImage(testImage); it = System.currentTimeMillis(); KImageEffect.blend(image, 0.2f, bgnd, KImageEffect.EllipticGradient); |