summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/examples/qmag/MagWidget.java
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-13 11:29:06 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-14 20:32:49 +0900
commit1eb017313b2ebc441dfc81e73a5d6573d03ea08d (patch)
tree8d37ac85ad8a529697fc81479852a039de534b8e /qtjava/javalib/examples/qmag/MagWidget.java
parent673e65a4a15e713643f4bb804f7af6dfdaa0d6d6 (diff)
downloadtdebindings-1eb017313b2ebc441dfc81e73a5d6573d03ea08d.tar.gz
tdebindings-1eb017313b2ebc441dfc81e73a5d6573d03ea08d.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit faf33629bb6562a6f43f930afafe4b22e9cdb60b)
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 f701835b..ade43cef 100644
--- a/qtjava/javalib/examples/qmag/MagWidget.java
+++ b/qtjava/javalib/examples/qmag/MagWidget.java
@@ -57,11 +57,11 @@ MagWidget( TQWidget parent, String name )
zoom = new TQComboBox( false, this );
zoom.insertStrList( zoomfactors, 9 );
- connect( zoom, SIGNAL("activated(int)"), SLOT("setZoom(int)") );
+ connect( zoom, TQ_SIGNAL("activated(int)"), TQ_SLOT("setZoom(int)") );
refresh = new TQComboBox( false, this );
refresh.insertStrList( refreshrates, 9 );
- connect( refresh, SIGNAL("activated(int)"), SLOT("setRefresh(int)") );
+ connect( refresh, TQ_SIGNAL("activated(int)"), TQ_SLOT("setRefresh(int)") );
for( n=0; n<9; n++) {
int w2 = zoom.fontMetrics().width( zoomfactors[n] );
@@ -78,20 +78,20 @@ MagWidget( TQWidget parent, String name )
refresh.setGeometry( x, 2, w+30, 20 );
saveButton = new TQPushButton( this );
- connect( saveButton, SIGNAL("clicked()"), this, SLOT("save()") );
+ connect( saveButton, TQ_SIGNAL("clicked()"), this, TQ_SLOT("save()") );
saveButton.setText( "Save" );
saveButton.setGeometry( x+w+30+2, 2,
10+saveButton.fontMetrics().width("Save"), 20 );
multiSaveButton = new TQPushButton( this );
multiSaveButton.setToggleButton(true);
- connect( multiSaveButton, SIGNAL("clicked()"), this, SLOT("multiSave()") );
+ connect( multiSaveButton, TQ_SIGNAL("clicked()"), this, TQ_SLOT("multiSave()") );
multiSaveButton.setText( "MultiSave" );
multiSaveButton.setGeometry( saveButton.geometry().right() + 2, 2,
10+multiSaveButton.fontMetrics().width("MultiSave"), 20 );
quitButton = new TQPushButton( this );
- connect( quitButton, SIGNAL("clicked()"), tqApp(), SLOT("quit()") );
+ connect( quitButton, TQ_SIGNAL("clicked()"), tqApp(), TQ_SLOT("quit()") );
quitButton.setText( "Quit" );
quitButton.setGeometry( multiSaveButton.geometry().right() + 2, 2,
10+quitButton.fontMetrics().width("Quit"), 20 );