diff options
Diffstat (limited to 'qtjava/javalib/examples/listbox/ListBoxDemo.java')
-rw-r--r-- | qtjava/javalib/examples/listbox/ListBoxDemo.java | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/qtjava/javalib/examples/listbox/ListBoxDemo.java b/qtjava/javalib/examples/listbox/ListBoxDemo.java index 11ce7037..ea496b68 100644 --- a/qtjava/javalib/examples/listbox/ListBoxDemo.java +++ b/qtjava/javalib/examples/listbox/ListBoxDemo.java @@ -45,7 +45,7 @@ ListBoxDemo() bg.insert( b ); v.addWidget( b ); b.setChecked( true ); - connect( b, SIGNAL("clicked()"), this, SLOT("setNumCols()") ); + connect( b, TQ_SIGNAL("clicked()"), this, TQ_SLOT("setNumCols()") ); TQHBoxLayout h = new TQHBoxLayout(); v.addLayout( h ); h.addSpacing( 30 ); @@ -61,7 +61,7 @@ ListBoxDemo() this ); bg.insert( b ); v.addWidget( b ); - connect( b, SIGNAL("clicked()"), this, SLOT("setColsByWidth()") ); + connect( b, TQ_SIGNAL("clicked()"), this, TQ_SLOT("setColsByWidth()") ); v.addSpacing( 12 ); @@ -70,7 +70,7 @@ ListBoxDemo() this ); bg.insert( b ); v.addWidget( b ); - connect( b, SIGNAL("clicked()"), this, SLOT("setNumRows()") ); + connect( b, TQ_SIGNAL("clicked()"), this, TQ_SLOT("setNumRows()") ); h = new TQHBoxLayout(); v.addLayout( h ); h.addSpacing( 30 ); @@ -87,30 +87,30 @@ ListBoxDemo() this ); bg.insert( b ); v.addWidget( b ); - connect( b, SIGNAL("clicked()"), this, SLOT("setRowsByHeight()") ); + connect( b, TQ_SIGNAL("clicked()"), this, TQ_SLOT("setRowsByHeight()") ); v.addSpacing( 12 ); TQCheckBox cb = new TQCheckBox( "Variable-height rows", this ); cb.setChecked( true ); - connect( cb, SIGNAL("toggled(boolean)"), this, SLOT("setVariableHeight(boolean)") ); + connect( cb, TQ_SIGNAL("toggled(boolean)"), this, TQ_SLOT("setVariableHeight(boolean)") ); v.addWidget( cb ); v.addSpacing( 6 ); cb = new TQCheckBox( "Variable-width columns", this ); - connect( cb, SIGNAL("toggled(boolean)"), this, SLOT("setVariableWidth(boolean)") ); + connect( cb, TQ_SIGNAL("toggled(boolean)"), this, TQ_SLOT("setVariableWidth(boolean)") ); v.addWidget( cb ); cb = new TQCheckBox( "Extended-Selection", this ); - connect( cb, SIGNAL("toggled(boolean)"), this, SLOT("setMultiSelection(boolean)") ); + connect( cb, TQ_SIGNAL("toggled(boolean)"), this, TQ_SLOT("setMultiSelection(boolean)") ); v.addWidget( cb ); TQPushButton pb = new TQPushButton( "Sort ascending", this ); - connect( pb, SIGNAL(" clicked()"), this, SLOT(" sortAscending()") ); + connect( pb, TQ_SIGNAL(" clicked()"), this, TQ_SLOT(" sortAscending()") ); v.addWidget( pb ); pb = new TQPushButton( "Sort descending", this ); - connect( pb, SIGNAL(" clicked()"), this, SLOT(" sortDescending()") ); + connect( pb, TQ_SIGNAL(" clicked()"), this, TQ_SLOT(" sortDescending()") ); v.addWidget( pb ); v.addStretch( 100 ); @@ -124,8 +124,8 @@ ListBoxDemo() rows.setRange( 1, 256 ); rows.setValue( 256 ); - connect( columns, SIGNAL("valueChanged(int)"), this, SLOT("setNumCols()") ); - connect( rows, SIGNAL("valueChanged(int)"), this, SLOT("setNumRows()") ); + connect( columns, TQ_SIGNAL("valueChanged(int)"), this, TQ_SLOT("setNumCols()") ); + connect( rows, TQ_SIGNAL("valueChanged(int)"), this, TQ_SLOT("setNumRows()") ); } |