summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/test/kblend/KBlendTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'kdejava/koala/test/kblend/KBlendTest.java')
-rw-r--r--kdejava/koala/test/kblend/KBlendTest.java28
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);