summaryrefslogtreecommitdiffstats
path: root/qtruby/rubylib/examples/qt-examples/checklists/checklists.rb
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 /qtruby/rubylib/examples/qt-examples/checklists/checklists.rb
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 'qtruby/rubylib/examples/qt-examples/checklists/checklists.rb')
-rw-r--r--qtruby/rubylib/examples/qt-examples/checklists/checklists.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/qtruby/rubylib/examples/qt-examples/checklists/checklists.rb b/qtruby/rubylib/examples/qt-examples/checklists/checklists.rb
index 458dc127..9c428c12 100644
--- a/qtruby/rubylib/examples/qt-examples/checklists/checklists.rb
+++ b/qtruby/rubylib/examples/qt-examples/checklists/checklists.rb
@@ -55,8 +55,8 @@ class CheckLists < TQt::Widget
copy1 = TQt::PushButton.new(' -> ', self)
tmp.addWidget(copy1)
copy1.setMaximumWidth(copy1.sizeHint.width)
- # connect the SIGNAL clicked() of the pushbutton with the SLOT copy1to2()
- connect(copy1, SIGNAL('clicked()'), self, SLOT('copy1to2()'))
+ # connect the TQ_SIGNAL clicked() of the pushbutton with the TQ_SLOT copy1to2()
+ connect(copy1, TQ_SIGNAL('clicked()'), self, TQ_SLOT('copy1to2()'))
# another widget for layouting
vbox2 = TQt::VBoxLayout.new(lay)
@@ -79,8 +79,8 @@ class CheckLists < TQt::Widget
copy2 = TQt::PushButton.new(' -> ', self)
lay.addWidget( copy2 )
copy2.setMaximumWidth(copy2.sizeHint.width)
- # ...and connect its clicked() SIGNAL to the copy2to3() SLOT
- connect(copy2, SIGNAL('clicked()'), self, SLOT('copy2to3()'))
+ # ...and connect its clicked() TQ_SIGNAL to the copy2to3() TQ_SLOT
+ connect(copy2, TQ_SIGNAL('clicked()'), self, TQ_SLOT('copy2to3()'))
tmp = TQt::VBoxLayout.new(lay)
tmp.setMargin(5)
@@ -90,7 +90,7 @@ class CheckLists < TQt::Widget
tmp.addWidget(@label)
end
- # SLOT copy1to2()
+ # TQ_SLOT copy1to2()
#
# Copies all checked ListViewItems from the first ListView to
# the second one, and inserts them as Radio-ListViewItem.
@@ -121,7 +121,7 @@ class CheckLists < TQt::Widget
end
- # SLOT copy2to3()
+ # TQ_SLOT copy2to3()
#
# Copies the checked item of the second ListView into the
# Label at the right.