summaryrefslogtreecommitdiffstats
path: root/korundum/rubylib/examples/uimodules
diff options
context:
space:
mode:
Diffstat (limited to 'korundum/rubylib/examples/uimodules')
-rw-r--r--korundum/rubylib/examples/uimodules/uidialogs.rb8
-rw-r--r--korundum/rubylib/examples/uimodules/uimisc.rb8
-rw-r--r--korundum/rubylib/examples/uimodules/uiwidgets.rb14
3 files changed, 15 insertions, 15 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)
diff --git a/korundum/rubylib/examples/uimodules/uimisc.rb b/korundum/rubylib/examples/uimodules/uimisc.rb
index be186409..51b85bd4 100644
--- a/korundum/rubylib/examples/uimodules/uimisc.rb
+++ b/korundum/rubylib/examples/uimodules/uimisc.rb
@@ -26,7 +26,7 @@ class Page3 < TQt::Object
@iv = KDE::LineEdit.new(page)
@iv.setGeometry(x, y + 20, 100, 20)
@iv.show()
- connect(@iv, SIGNAL("textChanged(const TQString&)"), SLOT('ivChanged()'))
+ connect(@iv, TQ_SIGNAL("textChanged(const TQString&)"), TQ_SLOT('ivChanged()'))
@ivVal = KDE::IntValidator.new(page)
@ivVal.setRange(20, 50)
@@ -63,7 +63,7 @@ class Page3 < TQt::Object
@fv = KDE::LineEdit.new(page)
@fv.setGeometry(x, y + 20, 100, 20)
@fv.show()
- connect(@fv, SIGNAL("textChanged(const TQString&)"), SLOT('fvChanged()'))
+ connect(@fv, TQ_SIGNAL("textChanged(const TQString&)"), TQ_SLOT('fvChanged()'))
@fvVal = KDE::DoubleValidator.new(page)
@fvVal.setRange(10.0, 40.0)
@@ -100,7 +100,7 @@ class Page3 < TQt::Object
@dv = KDE::LineEdit.new(page)
@dv.setGeometry(x, y + 20, 100, 20)
@dv.show()
-# connect(dv, SIGNAL("textChanged(const TQString&)"), SLOT('dvChanged()'))
+# connect(dv, TQ_SIGNAL("textChanged(const TQString&)"), TQ_SLOT('dvChanged()'))
@dvVal = KDE::DateValidator.new(page)
# dvVal.setRange(10.0, 40.0)
@@ -112,7 +112,7 @@ class Page3 < TQt::Object
dvBtn = TQt::PushButton.new("Validate", page)
dvBtn.setGeometry(x, y + 45, 60, 22)
dvBtn.show()
- connect(dvBtn, SIGNAL("clicked()"), SLOT('dvChanged()'))
+ connect(dvBtn, TQ_SIGNAL("clicked()"), TQ_SLOT('dvChanged()'))
dvNoteLbl = TQt::Label.new("Format is locale dependent\nShort date only\nTry DD-MM-YY", page)
dvNoteLbl.setGeometry(x, y + 70, 150, 60)
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()