diff options
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. """ |