From faf33629bb6562a6f43f930afafe4b22e9cdb60b Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 13 Jan 2024 11:29:06 +0900 Subject: Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines Signed-off-by: Michele Calgaro --- qtjava/javalib/examples/lineedits/LineEdits.java | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'qtjava/javalib/examples/lineedits/LineEdits.java') diff --git a/qtjava/javalib/examples/lineedits/LineEdits.java b/qtjava/javalib/examples/lineedits/LineEdits.java index f0f00bf1..072e851a 100644 --- a/qtjava/javalib/examples/lineedits/LineEdits.java +++ b/qtjava/javalib/examples/lineedits/LineEdits.java @@ -48,9 +48,9 @@ LineEdits( TQWidget parent, String name ) combo1.insertItem( "Normal", -1 ); combo1.insertItem( "Password", -1 ); combo1.insertItem( "No Echo", -1 ); - // ...and connect the activated() SIGNAL with the slotEchoChanged() SLOT to be able + // ...and connect the activated() signal with the slotEchoChanged() slot to be able // to react when an item is selected - connect( combo1, SIGNAL(" activated( int )"), this, SLOT(" slotEchoChanged( int )") ); + connect( combo1, TQ_SIGNAL(" activated( int )"), this, TQ_SLOT(" slotEchoChanged( int )") ); // insert the first LineEdit lined1 = new TQLineEdit( this ); @@ -70,8 +70,8 @@ LineEdits( TQWidget parent, String name ) combo2.insertItem( "No Validator", -1 ); combo2.insertItem( "Integer Validator", -1 ); combo2.insertItem( "Double Validator", -1 ); - // ...and again the activated() SIGNAL gets connected with a SLOT - connect( combo2, SIGNAL(" activated( int )"), this, SLOT(" slotValidatorChanged( int )") ); + // ...and again the activated() signal gets connected with a slot + connect( combo2, TQ_SIGNAL(" activated( int )"), this, TQ_SLOT(" slotValidatorChanged( int )") ); // and the second LineEdit lined2 = new TQLineEdit( this ); @@ -91,8 +91,8 @@ LineEdits( TQWidget parent, String name ) combo3.insertItem( "Left", -1 ); combo3.insertItem( "Centered", -1 ); combo3.insertItem( "Right", -1 ); - // ...and again the activated() SIGNAL gets connected with a SLOT - connect( combo3, SIGNAL(" activated( int )"), this, SLOT(" slotAlignmentChanged( int )") ); + // ...and again the activated() signal gets connected with a slot + connect( combo3, TQ_SIGNAL(" activated( int )"), this, TQ_SLOT(" slotAlignmentChanged( int )") ); // and the third lineedit lined3 = new TQLineEdit( this ); @@ -110,8 +110,8 @@ LineEdits( TQWidget parent, String name ) combo4 = new TQComboBox( false, row4 ); combo4.insertItem( "False", -1 ); combo4.insertItem( "True", -1 ); - // ...and again the activated() SIGNAL gets connected with a SLOT - connect( combo4, SIGNAL(" activated( int )"), this, SLOT(" slotReadOnlyChanged( int )") ); + // ...and again the activated() signal gets connected with a slot + connect( combo4, TQ_SIGNAL(" activated( int )"), this, TQ_SLOT(" slotReadOnlyChanged( int )") ); // and the last lineedit lined4 = new TQLineEdit( this ); @@ -122,7 +122,7 @@ LineEdits( TQWidget parent, String name ) } /* - SLOT slotEchoChanged( int i ) + TQ_SLOT slotEchoChanged( int i ) * i contains the number of the item which the user has been chosen in the first Combobox. According to this value, we set the Echo-Mode for the @@ -147,7 +147,7 @@ void slotEchoChanged( int i ) } /* - SLOT slotValidatorChanged( int i ) + TQ_SLOT slotValidatorChanged( int i ) * i contains the number of the item which the user has been chosen in the second Combobox. According to this value, we set a validator for the @@ -177,7 +177,7 @@ void slotValidatorChanged( int i ) /* - SLOT slotAlignmentChanged( int i ) + TQ_SLOT slotAlignmentChanged( int i ) * i contains the number of the item which the user has been chosen in the third Combobox. According to this value, we set an alignment @@ -203,7 +203,7 @@ void slotAlignmentChanged( int i ) /* - SLOT slotReadOnlyChanged( int i ) + TQ_SLOT slotReadOnlyChanged( int i ) * i contains the number of the item which the user has been chosen in the fourth Combobox. According to this value, we toggle read-only. -- cgit v1.2.1