summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/examples/qmag/MagWidget.java
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/examples/qmag/MagWidget.java')
-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 );