summaryrefslogtreecommitdiffstats
path: root/korundum/rubylib/examples/kludgeror.rb
diff options
context:
space:
mode:
Diffstat (limited to 'korundum/rubylib/examples/kludgeror.rb')
-rw-r--r--korundum/rubylib/examples/kludgeror.rb30
1 files changed, 15 insertions, 15 deletions
diff --git a/korundum/rubylib/examples/kludgeror.rb b/korundum/rubylib/examples/kludgeror.rb
index 156b2c53..f44d6c3c 100644
--- a/korundum/rubylib/examples/kludgeror.rb
+++ b/korundum/rubylib/examples/kludgeror.rb
@@ -73,8 +73,8 @@ doc = KDE::HTMLPart.new toplevel, nil, toplevel, nil, 1
# doc = KDE::HTMLPart.new toplevel, nil, toplevel, nil, 1 # KDE::HTMLPart::BrowserViewGUI
ph = PartHolder.new doc
-TQt::Object::connect doc.browserExtension, SIGNAL("openURLRequest(const KURL&, const KParts::URLArgs&)"),
- ph, SLOT("openURL(const KURL&)") # BUG this slot must be screwing up wrt marshalling?
+TQt::Object::connect doc.browserExtension, TQ_SIGNAL("openURLRequest(const KURL&, const KParts::URLArgs&)"),
+ ph, TQ_SLOT("openURL(const KURL&)") # BUG this slot must be screwing up wrt marshalling?
ph.openURL url
toplevel.setCentralWidget doc.widget
@@ -103,26 +103,26 @@ begin
d.documentElement.appendChild locBar
end
-a1 = KDE::Action.new( "Reload", "reload", KDE::Shortcut.new(TQt::Key_F5), ph, SLOT("reload()"), doc.actionCollection, "reload" )
-a2 = KDE::Action.new( "Exit", "system-log-out", KDE::Shortcut.new(0), a, SLOT("quit()"), doc.actionCollection, "exit" )
+a1 = KDE::Action.new( "Reload", "reload", KDE::Shortcut.new(TQt::Key_F5), ph, TQ_SLOT("reload()"), doc.actionCollection, "reload" )
+a2 = KDE::Action.new( "Exit", "system-log-out", KDE::Shortcut.new(0), a, TQ_SLOT("quit()"), doc.actionCollection, "exit" )
toplevel.guiFactory.addClient doc
locBar = toplevel.toolBar("locationBar");
-locBar.insertButton "back", BACK_B, SIGNAL("clicked()"),
- ph, SLOT("back()"), true, "Go back"
-locBar.insertLined url.url, LOC_ED, SIGNAL("returnPressed(const TQString&)"), ph, SLOT("goToURL(const TQString&)"), true, "Location"
-locBar.insertButton "locationbar_erase", ERASE_B, SIGNAL("clicked()"),
- locBar.getLined(LOC_ED), SLOT("clear()"), true, "Erase the location bar's content", 2
+locBar.insertButton "back", BACK_B, TQ_SIGNAL("clicked()"),
+ ph, TQ_SLOT("back()"), true, "Go back"
+locBar.insertLined url.url, LOC_ED, TQ_SIGNAL("returnPressed(const TQString&)"), ph, TQ_SLOT("goToURL(const TQString&)"), true, "Location"
+locBar.insertButton "locationbar_erase", ERASE_B, TQ_SIGNAL("clicked()"),
+ locBar.getLined(LOC_ED), TQ_SLOT("clear()"), true, "Erase the location bar's content", 2
locBar.setItemAutoSized LOC_ED, true
locBar.getLined(LOC_ED).createPopupMenu
comp = locBar.getLined(LOC_ED).completionObject
comp.setCompletionMode KDE::GlobalSettings::CompletionPopupAuto
-TQt::Object::connect(locBar.getLined(LOC_ED), SIGNAL("returnPressed(const TQString&)"),
- comp, SLOT("addItem(const TQString&)"))
-TQt::Object::connect(ph, SIGNAL("setLocBarText(const TQString&)"), # BUG - once again...
- locBar.getLined(LOC_ED), SLOT("setText(const TQString&)"))
+TQt::Object::connect(locBar.getLined(LOC_ED), TQ_SIGNAL("returnPressed(const TQString&)"),
+ comp, TQ_SLOT("addItem(const TQString&)"))
+TQt::Object::connect(ph, TQ_SIGNAL("setLocBarText(const TQString&)"), # BUG - once again...
+ locBar.getLined(LOC_ED), TQ_SLOT("setText(const TQString&)"))
doc.setJScriptEnabled true
doc.setJavaEnabled true
@@ -131,8 +131,8 @@ doc.setURLCursor TQt::Cursor.new(TQt::PointingHandCursor)
a.setTopWidget doc.widget
-TQt::Object::connect doc, SIGNAL("setWindowCaption(const TQString&)"),
- doc.widget.topLevelWidget, SLOT("setCaption(const TQString&)")
+TQt::Object::connect doc, TQ_SIGNAL("setWindowCaption(const TQString&)"),
+ doc.widget.topLevelWidget, TQ_SLOT("setCaption(const TQString&)")
toplevel.show
a.exec