diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-08 11:54:27 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-11 10:03:08 +0900 |
commit | 27f46d6031d41aa6ce071885a7e280e1097680e1 (patch) | |
tree | dbb592ad2f606c9a8e56ed6aa4f4f562c8928002 /examples/listboxcombo.py | |
parent | a131499f339ae27686e9effc8088ebdf7bb77dde (diff) | |
download | pytqt-27f46d6031d41aa6ce071885a7e280e1097680e1.tar.gz pytqt-27f46d6031d41aa6ce071885a7e280e1097680e1.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 7d5aea7e8497095f76841f3dd8f2eab9c4cb58aa)
Diffstat (limited to 'examples/listboxcombo.py')
-rwxr-xr-x | examples/listboxcombo.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/listboxcombo.py b/examples/listboxcombo.py index b6b546e..e608a73 100755 --- a/examples/listboxcombo.py +++ b/examples/listboxcombo.py @@ -48,8 +48,8 @@ class ListBoxCombo( TQVBox ): # Create a pushbutton... arrow1 = TQPushButton( " -> ", row1 ) - # ...and connect the clicked SIGNAL with the SLOT slotLeft2Right - self.connect( arrow1, SIGNAL("clicked()"), self.slotLeft2Right ) + # ...and connect the clicked signal with the slot slotLeft2Right + self.connect( arrow1, TQ_SIGNAL("clicked()"), self.slotLeft2Right ) # create an empty single-selection ListBox self.lb2 = TQListBox( row1 ) @@ -92,10 +92,10 @@ class ListBoxCombo( TQVBox ): cb2.insertItem( txt ) # Connect the activated SIGNALs of the Comboboxes with SLOTs - self.connect( cb1, SIGNAL("activated( const TQString & )"), self.slotCombo1Activated ) - self.connect( cb2, SIGNAL("activated( const TQString & )"), self.slotCombo2Activated ) + self.connect( cb1, TQ_SIGNAL("activated( const TQString & )"), self.slotCombo1Activated ) + self.connect( cb2, TQ_SIGNAL("activated( const TQString & )"), self.slotCombo2Activated ) - """ SLOT slotLeft2Right + """ TQ_SLOT slotLeft2Right * Copies all selected items of the first ListBox into the second ListBox """ def slotLeft2Right( self ): @@ -112,14 +112,14 @@ class ListBoxCombo( TQVBox ): elif item.text().isEmpty() : self.lb2.insertItem( item.pixmap() ) - """ SLOT slotCombo1Activated( const TQString &s ) + """ TQ_SLOT slotCombo1Activated( const TQString &s ) * Sets the text of the item which the user just selected in the * first Combobox (and is now the value of s) to the first Label. """ def slotCombo1Activated( self, s ) : self.label1.setText( str(TQString( "Current Item: %1" ).arg( s ) ) ) - """ SLOT slotCombo2Activated( const TQString &s ) + """ TQ_SLOT slotCombo2Activated( const TQString &s ) * Sets the text of the item which the user just selected in the * second Combobox (and is now the value of s) to the second Label. """ |