diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-13 11:29:06 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-13 11:45:40 +0900 |
commit | faf33629bb6562a6f43f930afafe4b22e9cdb60b (patch) | |
tree | 8fc6dc6d999a3a039ace28db2fe5b96712fa18e0 /korundum/rubylib/examples/uimodules/uiwidgets.rb | |
parent | 0ff7d227c65fecb4fb7482ecd679acb594ef5cf7 (diff) | |
download | tdebindings-faf33629bb6562a6f43f930afafe4b22e9cdb60b.tar.gz tdebindings-faf33629bb6562a6f43f930afafe4b22e9cdb60b.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'korundum/rubylib/examples/uimodules/uiwidgets.rb')
-rw-r--r-- | korundum/rubylib/examples/uimodules/uiwidgets.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/korundum/rubylib/examples/uimodules/uiwidgets.rb b/korundum/rubylib/examples/uimodules/uiwidgets.rb index 71a865a5..4e0bcdb3 100644 --- a/korundum/rubylib/examples/uimodules/uiwidgets.rb +++ b/korundum/rubylib/examples/uimodules/uiwidgets.rb @@ -41,9 +41,9 @@ class Page1 < TQt::Object replaceBtn.setGeometry(x + 90, y, 60, 22) gotoBtn.setGeometry(x + 180, y, 60, 22) -# page.connect(searchBtn, SIGNAL("clicked()"), parent.edit, SLOT('search()')) -# page.connect(replaceBtn, SIGNAL("clicked()"), parent.edit, SLOT('replace()')) -# page.connect(gotoBtn, SIGNAL("clicked()"), parent.edit, SLOT('doGotoLine()')) +# page.connect(searchBtn, TQ_SIGNAL("clicked()"), parent.edit, TQ_SLOT('search()')) +# page.connect(replaceBtn, TQ_SIGNAL("clicked()"), parent.edit, TQ_SLOT('replace()')) +# page.connect(gotoBtn, TQ_SIGNAL("clicked()"), parent.edit, TQ_SLOT('doGotoLine()')) searchBtn.show() replaceBtn.show() @@ -105,7 +105,7 @@ class Page1 < TQt::Object (0...n).each { |i| TQt::RadioButton.new(buttons[i], grp) } - connect(grp, SIGNAL("clicked(int)"), SLOT('restrict(int)')) + connect(grp, TQ_SIGNAL("clicked(int)"), TQ_SLOT('restrict(int)')) grp.find(0).setChecked(true) restrict(0) @@ -469,7 +469,7 @@ class Page6 < TQt::Object toggle.setGeometry(150, 400, 60, 22) toggle.show() - connect(toggle, SIGNAL("clicked()"), SLOT('toggleClicked()')) + connect(toggle, TQ_SIGNAL("clicked()"), TQ_SLOT('toggleClicked()')) page.show() end @@ -545,7 +545,7 @@ class Page7 < TQt::Object page.show() @timer = TQt::Timer.new(page) - connect(@timer, SIGNAL('timeout()'), SLOT('add1()')) + connect(@timer, TQ_SIGNAL('timeout()'), TQ_SLOT('add1()')) @timer.start(100) add1() @@ -637,7 +637,7 @@ class CSDlg < KDE::Dialog closeBtn.setGeometry( 610, 280, 60, 22) closeBtn.show() - connect(closeBtn, SIGNAL("clicked()"), SLOT('closeClicked()')) + connect(closeBtn, TQ_SIGNAL("clicked()"), TQ_SLOT('closeClicked()')) end def closeClicked() |