summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/examples/qmag
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-27 17:55:22 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-27 17:55:22 -0600
commitef5a04df564ad5c27406c41fb55e32ad3aa39d25 (patch)
treebf521221fffb7a73f318fc5579da7c25fed9ff74 /qtjava/javalib/examples/qmag
parent6d5f6f30f0236920737b74261e664fdaab90c33c (diff)
downloadtdebindings-ef5a04df564ad5c27406c41fb55e32ad3aa39d25.tar.gz
tdebindings-ef5a04df564ad5c27406c41fb55e32ad3aa39d25.zip
Rename tqt3 color functions
Diffstat (limited to 'qtjava/javalib/examples/qmag')
-rw-r--r--qtjava/javalib/examples/qmag/MagWidget.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/qtjava/javalib/examples/qmag/MagWidget.java b/qtjava/javalib/examples/qmag/MagWidget.java
index cf766570..33637587 100644
--- a/qtjava/javalib/examples/qmag/MagWidget.java
+++ b/qtjava/javalib/examples/qmag/MagWidget.java
@@ -91,7 +91,7 @@ MagWidget( TQWidget parent, String name )
10+multiSaveButton.fontMetrics().width("MultiSave"), 20 );
quitButton = new TQPushButton( this );
- connect( quitButton, SIGNAL("clicked()"), qApp(), SLOT("quit()") );
+ connect( quitButton, SIGNAL("clicked()"), tqApp(), SLOT("quit()") );
quitButton.setText( "Quit" );
quitButton.setGeometry( multiSaveButton.geometry().right() + 2, 2,
10+quitButton.fontMetrics().width("Quit"), 20 );
@@ -296,10 +296,10 @@ protected void mouseMoveEvent( TQMouseEvent e )
if ( image.valid(x,y) )
{
int px = image.pixel(x,y);
- pixelinfo= " " + qRed(px) + "," + qGreen(px) + "," + qBlue(px) + " ";
- pixelinfo += "#" + Integer.toHexString(qRed(px))
- + Integer.toHexString(qGreen(px))
- + Integer.toHexString(qBlue(px)) + " ";
+ pixelinfo= " " + tqRed(px) + "," + tqGreen(px) + "," + tqBlue(px) + " ";
+ pixelinfo += "#" + Integer.toHexString(tqRed(px))
+ + Integer.toHexString(tqGreen(px))
+ + Integer.toHexString(tqBlue(px)) + " ";
}
String label = "x=" + (x+grabx) + ", y=" + (y+graby) + " " + pixelinfo;
rgb.setText( label );