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/popup/Frame.java | |
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/popup/Frame.java')
-rw-r--r-- | qtjava/javalib/examples/popup/Frame.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/qtjava/javalib/examples/popup/Frame.java b/qtjava/javalib/examples/popup/Frame.java index f7608e03..6fbaa7d9 100644 --- a/qtjava/javalib/examples/popup/Frame.java +++ b/qtjava/javalib/examples/popup/Frame.java @@ -32,9 +32,9 @@ Frame(TQWidget parent, String name) { super(parent, name); button1 = new TQPushButton("Simple Popup", this); - connect ( button1, SIGNAL(" clicked()"), SLOT(" button1Clicked()") ); + connect ( button1, TQ_SIGNAL(" clicked()"), TQ_SLOT(" button1Clicked()") ); button2 = new TQPushButton("Fancy Popup", this); - connect ( button2, SIGNAL(" pressed()"), SLOT(" button2Pressed()") ); + connect ( button2, TQ_SIGNAL(" pressed()"), TQ_SLOT(" button2Pressed()") ); TQBoxLayout l = new TQHBoxLayout( this ); button1.setMaximumSize(button1.sizeHint()); @@ -54,11 +54,11 @@ Frame(TQWidget parent, String name) popup1.setFrameStyle( WinPanel|Raised ); popup1.resize(150,100); TQLineEdit tmpE = new TQLineEdit( popup1 ); - connect( tmpE, SIGNAL(" returnPressed()"), popup1, SLOT(" hide()") ); + connect( tmpE, TQ_SIGNAL(" returnPressed()"), popup1, TQ_SLOT(" hide()") ); tmpE.setGeometry(10,10, 130, 30); tmpE.setFocus(); TQPushButton tmpB = new TQPushButton("Click me!", popup1); - connect( tmpB, SIGNAL(" clicked()"), popup1, SLOT(" close()") ); + connect( tmpB, TQ_SIGNAL(" clicked()"), popup1, TQ_SLOT(" close()") ); tmpB.setGeometry(10, 50, 130, 30); // the fancier version uses its own class. It will be shown when @@ -73,7 +73,7 @@ Frame(TQWidget parent, String name) // tmpE = new TQLineEdit( popup2 ); // tmpE.setFocus(); -// connect( tmpE, SIGNAL(" returnPressed()"), popup2, SLOT(" close()") ); +// connect( tmpE, TQ_SIGNAL(" returnPressed()"), popup2, TQ_SLOT(" close()") ); // tmpE.setGeometry(10, 10, 130, 30); } |