diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-13 11:29:06 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-13 11:45:40 +0900 |
commit | faf33629bb6562a6f43f930afafe4b22e9cdb60b (patch) | |
tree | 8fc6dc6d999a3a039ace28db2fe5b96712fa18e0 /qtjava/javalib/examples/qmag | |
parent | 0ff7d227c65fecb4fb7482ecd679acb594ef5cf7 (diff) | |
download | tdebindings-faf33629bb6562a6f43f930afafe4b22e9cdb60b.tar.gz tdebindings-faf33629bb6562a6f43f930afafe4b22e9cdb60b.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'qtjava/javalib/examples/qmag')
-rw-r--r-- | qtjava/javalib/examples/qmag/MagWidget.java | 10 |
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 ); |