summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/examples/listbox
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-13 11:29:06 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-14 20:32:49 +0900
commit1eb017313b2ebc441dfc81e73a5d6573d03ea08d (patch)
tree8d37ac85ad8a529697fc81479852a039de534b8e /qtjava/javalib/examples/listbox
parent673e65a4a15e713643f4bb804f7af6dfdaa0d6d6 (diff)
downloadtdebindings-1eb017313b2ebc441dfc81e73a5d6573d03ea08d.tar.gz
tdebindings-1eb017313b2ebc441dfc81e73a5d6573d03ea08d.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit faf33629bb6562a6f43f930afafe4b22e9cdb60b)
Diffstat (limited to 'qtjava/javalib/examples/listbox')
-rw-r--r--qtjava/javalib/examples/listbox/ListBoxDemo.java22
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()") );
}