summaryrefslogtreecommitdiffstats
path: root/korundum/rubylib/examples/uimodules/uidialogs.rb
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-01-13 11:29:06 +0900
committerMichele Calgaro <[email protected]>2024-01-14 20:32:49 +0900
commit1eb017313b2ebc441dfc81e73a5d6573d03ea08d (patch)
tree8d37ac85ad8a529697fc81479852a039de534b8e /korundum/rubylib/examples/uimodules/uidialogs.rb
parent673e65a4a15e713643f4bb804f7af6dfdaa0d6d6 (diff)
downloadtdebindings-1eb017313b2ebc441dfc81e73a5d6573d03ea08d.tar.gz
tdebindings-1eb017313b2ebc441dfc81e73a5d6573d03ea08d.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit faf33629bb6562a6f43f930afafe4b22e9cdb60b)
Diffstat (limited to 'korundum/rubylib/examples/uimodules/uidialogs.rb')
-rw-r--r--korundum/rubylib/examples/uimodules/uidialogs.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/korundum/rubylib/examples/uimodules/uidialogs.rb b/korundum/rubylib/examples/uimodules/uidialogs.rb
index 8efed493..f4a9f353 100644
--- a/korundum/rubylib/examples/uimodules/uidialogs.rb
+++ b/korundum/rubylib/examples/uimodules/uidialogs.rb
@@ -39,9 +39,9 @@ class CustomDlg < KDE::Dialog
okBtn.setGeometry(x, y, 40, 22)
canBtn.setGeometry(x + 50, y, 40, 22)
- connect(dlgBtn, SIGNAL("clicked()"), SLOT('dlgClicked()'))
- connect(okBtn, SIGNAL("clicked()"), SLOT('okClicked()'))
- connect(canBtn, SIGNAL("clicked()"), SLOT('cancelClicked()'))
+ connect(dlgBtn, TQ_SIGNAL("clicked()"), TQ_SLOT('dlgClicked()'))
+ connect(okBtn, TQ_SIGNAL("clicked()"), TQ_SLOT('okClicked()'))
+ connect(canBtn, TQ_SIGNAL("clicked()"), TQ_SLOT('cancelClicked()'))
end
def dlgClicked()
@@ -93,7 +93,7 @@ class MessageDlg < KDE::Dialog
grp.setGeometry(10, 10, 200, 30*n)
(0...n).each { |i| TQt::RadioButton.new(buttons[i], grp) }
- connect(grp, SIGNAL("clicked(int)"), SLOT('launch(int)'))
+ connect(grp, TQ_SIGNAL("clicked(int)"), TQ_SLOT('launch(int)'))
end
def launch(which)