diff --git a/kalyptus/kalyptusCxxToJNI.pm b/kalyptus/kalyptusCxxToJNI.pm index fd426eb8..332b44de 100644 --- a/kalyptus/kalyptusCxxToJNI.pm +++ b/kalyptus/kalyptusCxxToJNI.pm @@ -536,12 +536,12 @@ EOF } /** Prepend a '2' to a signal string and remove any spaces */ - public static String SIGNAL(String signal) { + public static String TQ_SIGNAL(String signal) { return "2" + sqeezeOut(signal, ' '); } /** Prepend a '1' to a slot string and remove any spaces */ - public static String SLOT(String slot) { + public static String TQ_SLOT(String slot) { return "1" + sqeezeOut(slot, ' '); } @@ -5473,8 +5473,8 @@ sub printJavadocComment($$$$) $line =~ s/const char/String/g; $line =~ s/const (\w+)\&/$1/g; $line =~ s/bool/boolean/g; - $line =~ s/SLOT\(\s*([^\)]*)\) ?\)/SLOT("$1)")/g; - $line =~ s/SIGNAL\(\s*([^\)]*)\) ?\)/SIGNAL("$1)")/g; + $line =~ s/TQ_SLOT\(\s*([^\)]*)\) ?\)/TQ_SLOT("$1)")/g; + $line =~ s/TQ_SIGNAL\(\s*([^\)]*)\) ?\)/TQ_SIGNAL("$1)")/g; $line =~ s/TQ_OBJECT\n//g; $line =~ s/class\s+([\w]+)\s*:\s*public/public class $1 implements/g; $line =~ s/public\s*(slots)?:\n/public /g; diff --git a/kalyptus/kalyptusCxxToJava.pm b/kalyptus/kalyptusCxxToJava.pm index 3ad3d6e3..b75b9fb2 100644 --- a/kalyptus/kalyptusCxxToJava.pm +++ b/kalyptus/kalyptusCxxToJava.pm @@ -331,12 +331,12 @@ EOF } /** Prepend a '2' to a signal string and remove any spaces */ - public static String SIGNAL(String signal) { + public static String TQ_SIGNAL(String signal) { return "2" + sqeezeOut(signal, ' '); } /** Prepend a '1' to a slot string and remove any spaces */ - public static String SLOT(String slot) { + public static String TQ_SLOT(String slot) { return "1" + sqeezeOut(slot, ' '); } @@ -3315,8 +3315,8 @@ sub printJavadocComment($$$$) $line =~ s/const char/String/g; $line =~ s/const (\w+)\&/$1/g; $line =~ s/bool/boolean/g; - $line =~ s/SLOT\(\s*([^\)]*)\) ?\)/SLOT("$1)")/g; - $line =~ s/SIGNAL\(\s*([^\)]*)\) ?\)/SIGNAL("$1)")/g; + $line =~ s/TQ_SLOT\(\s*([^\)]*)\) ?\)/TQ_SLOT("$1)")/g; + $line =~ s/TQ_SIGNAL\(\s*([^\)]*)\) ?\)/TQ_SIGNAL("$1)")/g; $line =~ s/TQ_OBJECT\n//g; $line =~ s/class\s+([\w]+)\s*:\s*public/public class $1 implements/g; $line =~ s/public\s*(slots)?:\n/public /g; diff --git a/kalyptus/kalyptusCxxToKimono.pm b/kalyptus/kalyptusCxxToKimono.pm index 174bc5f6..4f4804c2 100644 --- a/kalyptus/kalyptusCxxToKimono.pm +++ b/kalyptus/kalyptusCxxToKimono.pm @@ -386,11 +386,11 @@ EOF public static TQApplication tqApp = null; - public static string SIGNAL(string signal) { + public static string TQ_SIGNAL(string signal) { return "2"+ signal; } - public static string SLOT(string slot) { + public static string TQ_SLOT(string slot) { return "1" + slot; } EOF @@ -3497,8 +3497,8 @@ sub printCSharpdocComment($$$$) $line =~ s/const char/string/g; $line =~ s/const (\w+)\&/$1/g; $line =~ s/bool/bool/g; - $line =~ s/SLOT\(\s*([^\)]*)\) ?\)/SLOT("$1)")/g; - $line =~ s/SIGNAL\(\s*([^\)]*)\) ?\)/SIGNAL("$1)")/g; + $line =~ s/TQ_SLOT\(\s*([^\)]*)\) ?\)/TQ_SLOT("$1)")/g; + $line =~ s/TQ_SIGNAL\(\s*([^\)]*)\) ?\)/TQ_SIGNAL("$1)")/g; $line =~ s/TQ_OBJECT\n//g; $line =~ s/public\s*(slots)?:\n/public /g; $line =~ s/([^0-9"]\s*)\*(\s*[^0-9"-])/$1$2/g; diff --git a/kjsembed/jsconsolewidget.cpp b/kjsembed/jsconsolewidget.cpp index 594cfce8..e536fba5 100644 --- a/kjsembed/jsconsolewidget.cpp +++ b/kjsembed/jsconsolewidget.cpp @@ -94,12 +94,12 @@ void JSConsoleWidget::createView() go = new TQPushButton( i18n("&Run"), cmdBox, "run_button" ); go->setFixedSize( go->sizeHint() ); - connect( cmd, TQT_SIGNAL(returnPressed(const TQString&)), go, TQT_SLOT( animateClick() ) ); - connect( go, TQT_SIGNAL( clicked() ), TQT_SLOT( invoke() ) ); + connect( cmd, TQ_SIGNAL(returnPressed(const TQString&)), go, TQ_SLOT( animateClick() ) ); + connect( go, TQ_SIGNAL( clicked() ), TQ_SLOT( invoke() ) ); // Setup completion TDECompletion *comp = cmd->completionObject(); - connect( cmd, TQT_SIGNAL(returnPressed(const TQString&)), comp, TQT_SLOT(addItem(const TQString&)) ); + connect( cmd, TQ_SIGNAL(returnPressed(const TQString&)), comp, TQ_SLOT(addItem(const TQString&)) ); // Layout TQVBoxLayout *vert = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() ); @@ -192,11 +192,11 @@ bool JSConsoleWidget::run( const TQString &cmd ) proc = new KShellProcess("/bin/sh"); *proc << cmd; - connect( proc, TQT_SIGNAL( processExited(TDEProcess *) ), TQT_SLOT( childExited() ) ); - connect( proc, TQT_SIGNAL( receivedStdout(TDEProcess *, char *, int) ), - this, TQT_SLOT( receivedStdOutput(TDEProcess *, char *, int) ) ); - connect( proc, TQT_SIGNAL( receivedStderr(TDEProcess *, char *, int) ), - this, TQT_SLOT( receivedStdError(TDEProcess *, char *, int) ) ); + connect( proc, TQ_SIGNAL( processExited(TDEProcess *) ), TQ_SLOT( childExited() ) ); + connect( proc, TQ_SIGNAL( receivedStdout(TDEProcess *, char *, int) ), + this, TQ_SLOT( receivedStdOutput(TDEProcess *, char *, int) ) ); + connect( proc, TQ_SIGNAL( receivedStderr(TDEProcess *, char *, int) ), + this, TQ_SLOT( receivedStdError(TDEProcess *, char *, int) ) ); return proc->start( TDEProcess::NotifyOnExit, TDEProcess::Communication( TDEProcess::Stdout|TDEProcess::Stderr )); diff --git a/kjsembed/kjscmd.cpp b/kjsembed/kjscmd.cpp index 316944ed..d8ee0817 100644 --- a/kjsembed/kjscmd.cpp +++ b/kjsembed/kjscmd.cpp @@ -99,7 +99,7 @@ int main( int argc, char **argv ) } else { app = new TDEApplication; - app->connect( app, TQT_SIGNAL( lastWindowClosed() ), TQT_SLOT(quit()) ); + app->connect( app, TQ_SIGNAL( lastWindowClosed() ), TQ_SLOT(quit()) ); } // Setup the rest diff --git a/kjsembed/ksimpleprocess.cpp b/kjsembed/ksimpleprocess.cpp index 96d3fea3..8777c2b9 100644 --- a/kjsembed/ksimpleprocess.cpp +++ b/kjsembed/ksimpleprocess.cpp @@ -34,10 +34,10 @@ TQString KSimpleProcess::exec( const TQString &args, bool addStdErr ) TQString KSimpleProcess::execInternal( const TQString &args, bool addStdError) { m_proc->setArguments( splitArgList( args )); - connect(m_proc, TQT_SIGNAL(processExited()), this, TQT_SLOT(slotProcessExited())); - connect(m_proc, TQT_SIGNAL(readyReadStdout()), this, TQT_SLOT(slotReceivedStdout())); + connect(m_proc, TQ_SIGNAL(processExited()), this, TQ_SLOT(slotProcessExited())); + connect(m_proc, TQ_SIGNAL(readyReadStdout()), this, TQ_SLOT(slotReceivedStdout())); if( addStdError ) - connect(m_proc, TQT_SIGNAL(readyReadStderr()), this, TQT_SLOT(slotReceivedStderr())); + connect(m_proc, TQ_SIGNAL(readyReadStderr()), this, TQ_SLOT(slotReceivedStderr())); if ( !m_proc->start() ) return i18n("Could not run command '%1'.").arg( args.latin1() ); diff --git a/kjsembed/plugin/jsconsoleplugin.cpp b/kjsembed/plugin/jsconsoleplugin.cpp index 3dc8d7cf..5f6a9e8f 100644 --- a/kjsembed/plugin/jsconsoleplugin.cpp +++ b/kjsembed/plugin/jsconsoleplugin.cpp @@ -51,7 +51,7 @@ JSConsolePlugin::JSConsolePlugin( TQObject *parent, const char *name, const TQSt menu->setDelayed( false ); menu->insert( new TDEAction( i18n("&Console"), 0, - this, TQT_SLOT( showConsole() ), + this, TQ_SLOT( showConsole() ), actionCollection(), "jsconsole_show") ); } diff --git a/kjsembed/qjscmd.cpp b/kjsembed/qjscmd.cpp index f621374e..ae4fe736 100644 --- a/kjsembed/qjscmd.cpp +++ b/kjsembed/qjscmd.cpp @@ -43,7 +43,7 @@ int main( int argc, char **argv ) // Setup TQApplication TQApplication *app; app = new TQApplication( argc, argv ); - app->connect( app, TQT_SIGNAL( lastWindowClosed() ), TQT_SLOT(quit()) ); + app->connect( app, TQ_SIGNAL( lastWindowClosed() ), TQ_SLOT(quit()) ); // Setup Interpreter KJSEmbed::JSSecurityPolicy::setDefaultPolicy( KJSEmbed::JSSecurityPolicy::CapabilityAll ); diff --git a/kjsembed/testkjsembed.cpp b/kjsembed/testkjsembed.cpp index 42f3ad07..4b138e8e 100644 --- a/kjsembed/testkjsembed.cpp +++ b/kjsembed/testkjsembed.cpp @@ -49,7 +49,7 @@ int main( int argc, char **argv ) // Setup Window app.setMainWidget( console ); - app.connect( &app, TQT_SIGNAL( lastWindowClosed() ), TQT_SLOT(quit()) ); + app.connect( &app, TQ_SIGNAL( lastWindowClosed() ), TQ_SLOT(quit()) ); console->resize( 600, 450 ); console->show(); diff --git a/kjsembed/tests/testkjsembed.cpp b/kjsembed/tests/testkjsembed.cpp index 1986cc2d..7018497f 100644 --- a/kjsembed/tests/testkjsembed.cpp +++ b/kjsembed/tests/testkjsembed.cpp @@ -52,7 +52,7 @@ int main( int argc, char **argv ) // Setup Window app.setMainWidget( console ); - app.connect( &app, TQT_SIGNAL( lastWindowClosed() ), TQT_SLOT(quit()) ); + app.connect( &app, TQ_SIGNAL( lastWindowClosed() ), TQ_SLOT(quit()) ); console->resize( 600, 450 ); console->show(); diff --git a/kjsembed/xmlactionclient.cpp b/kjsembed/xmlactionclient.cpp index 88bfab97..43872b30 100644 --- a/kjsembed/xmlactionclient.cpp +++ b/kjsembed/xmlactionclient.cpp @@ -125,7 +125,7 @@ bool XMLActionClient::bind( TDEAction *act, const XMLActionScript &s ) // kdWarning() << "Runner:bind called, action=" << act->name() << " type=" << s.type // << " text=" << s.text << " src=" << s.src << endl; - connect( act, TQT_SIGNAL( activated() ), this, TQT_SLOT( action_activated() ) ); + connect( act, TQ_SIGNAL( activated() ), this, TQ_SLOT( action_activated() ) ); return bind( act->name(), s ); } @@ -331,7 +331,7 @@ TDEAction *XMLActionHandler::createAction( TDEActionCollection *parent ) act->setStatusText( ad.status ); act->setWhatsThis( ad.whatsthis ); - TQObject::connect( actclient, TQT_SIGNAL( destroyed() ), act, TQT_SLOT( deleteLater() ) ); + TQObject::connect( actclient, TQ_SIGNAL( destroyed() ), act, TQ_SLOT( deleteLater() ) ); return act; } diff --git a/korundum/rubylib/examples/RubberDoc.rb b/korundum/rubylib/examples/RubberDoc.rb index 0c50320b..6adf0272 100755 --- a/korundum/rubylib/examples/RubberDoc.rb +++ b/korundum/rubylib/examples/RubberDoc.rb @@ -180,50 +180,50 @@ module MyGui @label = TQt::Label.new self - TQt::Object.connect @listbox, SIGNAL("clicked(TQListBoxItem*)"), - self, SLOT("clicked_result(TQListBoxItem*)") - TQt::Object.connect @viewed, SIGNAL("completed()"), - self, SLOT("tdehtml_part_init_complete()") + TQt::Object.connect @listbox, TQ_SIGNAL("clicked(TQListBoxItem*)"), + self, TQ_SLOT("clicked_result(TQListBoxItem*)") + TQt::Object.connect @viewed, TQ_SIGNAL("completed()"), + self, TQ_SLOT("tdehtml_part_init_complete()") - TQt::Object::connect @viewed, SIGNAL("setWindowCaption(const TQString&)"), + TQt::Object::connect @viewed, TQ_SIGNAL("setWindowCaption(const TQString&)"), @viewed.widget.topLevelWidget, - SLOT("setCaption(const TQString&)") + TQ_SLOT("setCaption(const TQString&)") TQt::Object::connect @viewed.browserExtension, - SIGNAL("openURLRequest(const KURL&, const KParts::URLArgs&)"), - self, SLOT("open_url(const KURL&)") + TQ_SIGNAL("openURLRequest(const KURL&, const KParts::URLArgs&)"), + self, TQ_SLOT("open_url(const KURL&)") KDE::Action.new "&Quit", "quit", KDE::Shortcut.new(), - self, SLOT("quit()"), @main.actionCollection, "file_quit" + self, TQ_SLOT("quit()"), @main.actionCollection, "file_quit" KDE::Action.new "&Index-All", KDE::Shortcut.new(), - self, SLOT("index_all()"), @main.actionCollection, "index_all" + self, TQ_SLOT("index_all()"), @main.actionCollection, "index_all" @back = \ KDE::Action.new "&Back", "back", KDE::Shortcut.new(TQt::ALT + TQt::Key_Left), - self, SLOT("go_back()"), @main.actionCollection, "back" + self, TQ_SLOT("go_back()"), @main.actionCollection, "back" @forward = \ KDE::Action.new "&Forward", "forward", KDE::Shortcut.new(TQt::ALT + TQt::Key_Right), - self, SLOT("go_forward()"), @main.actionCollection, "forward" + self, TQ_SLOT("go_forward()"), @main.actionCollection, "forward" KDE::Action.new "&Home", "gohome", KDE::Shortcut.new(TQt::Key_Home), - self, SLOT("go_home()"), @main.actionCollection, "home" + self, TQ_SLOT("go_home()"), @main.actionCollection, "home" KDE::Action.new "&Prev Match", "go-previous",KDE::Shortcut.new(TQt::CTRL + TQt::Key_P), - self, SLOT("goto_prev_match()"), @main.actionCollection, "prev_match" + self, TQ_SLOT("goto_prev_match()"), @main.actionCollection, "prev_match" KDE::Action.new "&Next Match", "go-next", KDE::Shortcut.new(TQt::CTRL + TQt::Key_N), - self, SLOT("goto_next_match()"), @main.actionCollection, "next_match" + self, TQ_SLOT("goto_next_match()"), @main.actionCollection, "next_match" KDE::Action.new "&Follow Match","go-down", KDE::Shortcut.new(TQt::Key_Return), - self, SLOT("goto_current_match_link()"), @main.actionCollection, "open_match" + self, TQ_SLOT("goto_current_match_link()"), @main.actionCollection, "open_match" KDE::Action.new "Search", "edit-find", KDE::Shortcut.new(TQt::Key_F6), - self, SLOT("focus_search()"), @main.actionCollection, "focus_search" + self, TQ_SLOT("focus_search()"), @main.actionCollection, "focus_search" KDE::Action.new "New Search", "edit-find", KDE::Shortcut.new(TQt::CTRL + TQt::Key_Slash), - self, SLOT("focus_and_clear_search()"), @main.actionCollection, "focus_and_clear_search" + self, TQ_SLOT("focus_and_clear_search()"), @main.actionCollection, "focus_and_clear_search" KDE::Action.new "&Create", "new", KDE::Shortcut.new(), - self, SLOT("project_create()"), @main.actionCollection, "project_create" + self, TQ_SLOT("project_create()"), @main.actionCollection, "project_create" KDE::Action.new "&Choose...", "select", KDE::Shortcut.new(), - self, SLOT("project_goto()"), @main.actionCollection, "project_goto" + self, TQ_SLOT("project_goto()"), @main.actionCollection, "project_goto" clearLocation = KDE::Action.new "Clear Location Bar", "locationbar_erase", KDE::Shortcut.new(), - self, SLOT("clear_location()"), @main.actionCollection, "clear_location" + self, TQ_SLOT("clear_location()"), @main.actionCollection, "clear_location" clearLocation.setWhatsThis "Clear Location bar
Clears the content of the location bar."
@searchlabel = TQt::Label.new @main
@@ -231,10 +231,10 @@ module MyGui
@searchcombo = KDE::HistoryCombo.new @main
focus_search
- TQt::Object.connect @searchcombo, SIGNAL("returnPressed()"),
- self, SLOT("goto_search()")
- TQt::Object.connect @searchcombo, SIGNAL("textChanged(const TQString&)"),
- self, SLOT("search(const TQString&)")
+ TQt::Object.connect @searchcombo, TQ_SIGNAL("returnPressed()"),
+ self, TQ_SLOT("goto_search()")
+ TQt::Object.connect @searchcombo, TQ_SIGNAL("textChanged(const TQString&)"),
+ self, TQ_SLOT("search(const TQString&)")
KDE::WidgetAction.new @searchlabel, "Search: ", KDE::Shortcut.new(TQt::Key_F6), nil, nil, @main.actionCollection, "location_label"
@searchlabel.setBuddy @searchcombo
@@ -680,11 +680,11 @@ class ProjectEditDialog < TQt::Object
@cb.setChecked true if enabled
- TQt::Object.connect @dialog, SIGNAL("okClicked()"),
- self, SLOT("slot_ok()")
+ TQt::Object.connect @dialog, TQ_SIGNAL("okClicked()"),
+ self, TQ_SLOT("slot_ok()")
- TQt::Object.connect locselc, SIGNAL("clicked()"),
- self, SLOT("select_file()")
+ TQt::Object.connect locselc, TQ_SIGNAL("clicked()"),
+ self, TQ_SLOT("select_file()")
@title.setFocus
@@ -746,17 +746,17 @@ class ProjectSelectDialog < TQt::Object
button_del = TQt::PushButton.new "Delete", hbox
button_edit = TQt::PushButton.new "Edit...", hbox
- TQt::Object.connect button_new, SIGNAL("clicked()"),
- self, SLOT("project_create_button()")
+ TQt::Object.connect button_new, TQ_SIGNAL("clicked()"),
+ self, TQ_SLOT("project_create_button()")
- TQt::Object.connect button_del, SIGNAL("clicked()"),
- self, SLOT("delete_selected_project()")
+ TQt::Object.connect button_del, TQ_SIGNAL("clicked()"),
+ self, TQ_SLOT("delete_selected_project()")
- TQt::Object.connect button_edit, SIGNAL("clicked()"),
- self, SLOT("edit_selected_project()")
+ TQt::Object.connect button_edit, TQ_SIGNAL("clicked()"),
+ self, TQ_SLOT("edit_selected_project()")
- TQt::Object.connect @listbox, SIGNAL("doubleClicked(TQListBoxItem *)"),
- self, SLOT("project_selected()")
+ TQt::Object.connect @listbox, TQ_SIGNAL("doubleClicked(TQListBoxItem *)"),
+ self, TQ_SLOT("project_selected()")
@dialog.setMainWidget vbox
end
@@ -915,8 +915,8 @@ class RubberDoc < TQt::VBox
gui_init_proportions
@timer = TQt::Timer.new self
- TQt::Object.connect @timer, SIGNAL("timeout()"),
- self, SLOT("update_highlight()")
+ TQt::Object.connect @timer, TQ_SIGNAL("timeout()"),
+ self, TQ_SLOT("update_highlight()")
@viewed.openURL KDE::URL.new("about:blank")
@@ -934,8 +934,8 @@ class RubberDoc < TQt::VBox
end
def tdehtml_part_init_complete
- TQt::Object.disconnect @viewed, SIGNAL("completed()"),
- self, SLOT("tdehtml_part_init_complete()") if @init_connected
+ TQt::Object.disconnect @viewed, TQ_SIGNAL("completed()"),
+ self, TQ_SLOT("tdehtml_part_init_complete()") if @init_connected
@pref = File.dirname first_url.url.gsub("file:","")
diff --git a/korundum/rubylib/examples/dcop/dcopcall.rb b/korundum/rubylib/examples/dcop/dcopcall.rb
index cba7ff09..58add5ae 100755
--- a/korundum/rubylib/examples/dcop/dcopcall.rb
+++ b/korundum/rubylib/examples/dcop/dcopcall.rb
@@ -6,7 +6,7 @@ include KDE
class SenderWidget < PushButton
def initialize(parent, name)
super
- connect(self, SIGNAL('clicked()'), self, SLOT('doit()'))
+ connect(self, TQ_SIGNAL('clicked()'), self, TQ_SLOT('doit()'))
end
slots 'doit()'
diff --git a/korundum/rubylib/examples/dcop/dcoppredicate.rb b/korundum/rubylib/examples/dcop/dcoppredicate.rb
index 82a9c8b4..c4cb2c41 100755
--- a/korundum/rubylib/examples/dcop/dcoppredicate.rb
+++ b/korundum/rubylib/examples/dcop/dcoppredicate.rb
@@ -6,7 +6,7 @@ include KDE
class SenderWidget < PushButton
def initialize(parent, name)
super
- connect(self, SIGNAL('clicked()'), self, SLOT('doit()'))
+ connect(self, TQ_SIGNAL('clicked()'), self, TQ_SLOT('doit()'))
end
slots 'doit()'
diff --git a/korundum/rubylib/examples/dcop/dcopsend.rb b/korundum/rubylib/examples/dcop/dcopsend.rb
index e8a69e00..66530797 100755
--- a/korundum/rubylib/examples/dcop/dcopsend.rb
+++ b/korundum/rubylib/examples/dcop/dcopsend.rb
@@ -5,7 +5,7 @@ require 'Korundum'
class SenderWidget < KDE::PushButton
def initialize(parent, name)
super
- TQt::Object::connect(self, SIGNAL('clicked()'), self, SLOT('doit()'))
+ TQt::Object::connect(self, TQ_SIGNAL('clicked()'), self, TQ_SLOT('doit()'))
end
slots 'doit()'
diff --git a/korundum/rubylib/examples/dcop/dcopsignal.rb b/korundum/rubylib/examples/dcop/dcopsignal.rb
index 4e83d7f4..4d61e917 100755
--- a/korundum/rubylib/examples/dcop/dcopsignal.rb
+++ b/korundum/rubylib/examples/dcop/dcopsignal.rb
@@ -7,7 +7,7 @@ class SenderWidget < KDE::PushButton
def initialize(parent, name)
super
- TQt::Object::connect(self, SIGNAL('clicked()'), self, SLOT('doit()'))
+ TQt::Object::connect(self, TQ_SIGNAL('clicked()'), self, TQ_SLOT('doit()'))
end
slots 'doit()'
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
diff --git a/korundum/rubylib/examples/menudemo.rb b/korundum/rubylib/examples/menudemo.rb
index 0ff27ac8..5fe405d3 100644
--- a/korundum/rubylib/examples/menudemo.rb
+++ b/korundum/rubylib/examples/menudemo.rb
@@ -65,29 +65,29 @@ class MainWin < MainWindow
def initActions()
# "File" menu items
- @newAction = StdAction.openNew(self, SLOT('slotNew()'), actionCollection())
- @openAction = StdAction.open(self, SLOT('slotOpen()'), actionCollection())
- @saveAction = StdAction.save(self, SLOT('slotSave()'), actionCollection())
- @saveAsAction = StdAction.saveAs(self, SLOT('slotSaveAs()'), actionCollection())
- @printAction = StdAction.print(self, SLOT('slotPrint()'), actionCollection())
- @quitAction = StdAction.quit(self, SLOT('slotQuit()'), actionCollection())
+ @newAction = StdAction.openNew(self, TQ_SLOT('slotNew()'), actionCollection())
+ @openAction = StdAction.open(self, TQ_SLOT('slotOpen()'), actionCollection())
+ @saveAction = StdAction.save(self, TQ_SLOT('slotSave()'), actionCollection())
+ @saveAsAction = StdAction.saveAs(self, TQ_SLOT('slotSaveAs()'), actionCollection())
+ @printAction = StdAction.print(self, TQ_SLOT('slotPrint()'), actionCollection())
+ @quitAction = StdAction.quit(self, TQ_SLOT('slotQuit()'), actionCollection())
# "Edit" menu items
- @undoAction = StdAction.undo(self, SLOT('slotUndo()'), actionCollection())
- @redoAction = StdAction.redo(self, SLOT('slotRedo()'), actionCollection())
- @cutAction = StdAction.cut(self, SLOT('slotCut()'), actionCollection())
- @copyAction = StdAction.copy(self, SLOT('slotCopy()'), actionCollection())
- @pasteAction = StdAction.paste(self, SLOT('slotPaste()'), actionCollection())
- @findAction = StdAction.find(self, SLOT('slotFind()'), actionCollection())
- @findNextAction = StdAction.findNext(self, SLOT('slotFindNext()'), actionCollection())
- @replaceAction = StdAction.replace(self, SLOT('slotReplace()'), actionCollection())
- @specialAction = Action.new(i18n("Special"), Shortcut.new(), self, SLOT('slotSpecial()'), actionCollection(), "special")
+ @undoAction = StdAction.undo(self, TQ_SLOT('slotUndo()'), actionCollection())
+ @redoAction = StdAction.redo(self, TQ_SLOT('slotRedo()'), actionCollection())
+ @cutAction = StdAction.cut(self, TQ_SLOT('slotCut()'), actionCollection())
+ @copyAction = StdAction.copy(self, TQ_SLOT('slotCopy()'), actionCollection())
+ @pasteAction = StdAction.paste(self, TQ_SLOT('slotPaste()'), actionCollection())
+ @findAction = StdAction.find(self, TQ_SLOT('slotFind()'), actionCollection())
+ @findNextAction = StdAction.findNext(self, TQ_SLOT('slotFindNext()'), actionCollection())
+ @replaceAction = StdAction.replace(self, TQ_SLOT('slotReplace()'), actionCollection())
+ @specialAction = Action.new(i18n("Special"), Shortcut.new(), self, TQ_SLOT('slotSpecial()'), actionCollection(), "special")
# Demo menu items
# TDEToggleAction has an isChecked member and emits the "toggle" signal
@toggle1Action = ToggleAction.new("Toggle 1")
- @toggle2Action = ToggleAction.new("Toggle 2", Shortcut.new(), self, SLOT('slotToggle2()'), nil)
+ @toggle2Action = ToggleAction.new("Toggle 2", Shortcut.new(), self, TQ_SLOT('slotToggle2()'), nil)
# A separator - create once/use everywhere
@separateAction = ActionSeparator.new()
@@ -103,8 +103,8 @@ class MainWin < MainWindow
# Nested menus using TDEActions (also nested on toolbar)
@actionMenu = ActionMenu.new("Action Menu")
@actionMenu.setIconSet(iconSet)
- @actionMenu.insert(StdAction.zoomIn(self, SLOT('slotZoomIn()'), actionCollection()))
- @actionMenu.insert(StdAction.zoomOut(self, SLOT('slotZoomOut()'), actionCollection()))
+ @actionMenu.insert(StdAction.zoomIn(self, TQ_SLOT('slotZoomIn()'), actionCollection()))
+ @actionMenu.insert(StdAction.zoomOut(self, TQ_SLOT('slotZoomOut()'), actionCollection()))
# Doesn't work in KDE 2.1.1
# radio1Action = TDERadioAction ("Radio 1")
diff --git a/korundum/rubylib/examples/rbTDEHTMLPart.rb b/korundum/rubylib/examples/rbTDEHTMLPart.rb
index 27eb4a70..aafc160e 100644
--- a/korundum/rubylib/examples/rbTDEHTMLPart.rb
+++ b/korundum/rubylib/examples/rbTDEHTMLPart.rb
@@ -67,14 +67,14 @@ class RbPartsMW < KParts::MainWindow
# some of this and later stuff (like self.actionCollection () )
# comes from
- quitAction = KDE::StdAction.quit(self, SLOT('close()'), actionCollection())
+ quitAction = KDE::StdAction.quit(self, TQ_SLOT('close()'), actionCollection())
createStandardStatusBarAction()
-# @m_toolbarAction = KDE::StdAction.showToolbar(self, SLOT('optionsShowToolbar()'), actionCollection())
- @m_statusbarAction = KDE::StdAction.showStatusbar(self, SLOT('optionsShowStatusbar()'), actionCollection())
+# @m_toolbarAction = KDE::StdAction.showToolbar(self, TQ_SLOT('optionsShowToolbar()'), actionCollection())
+ @m_statusbarAction = KDE::StdAction.showStatusbar(self, TQ_SLOT('optionsShowStatusbar()'), actionCollection())
- KDE::StdAction.keyBindings(self, SLOT('optionsConfigureKeys()'), actionCollection())
- KDE::StdAction.configureToolbars(self, SLOT('optionsConfigureToolbars()'), actionCollection())
+ KDE::StdAction.keyBindings(self, TQ_SLOT('optionsConfigureKeys()'), actionCollection())
+ KDE::StdAction.configureToolbars(self, TQ_SLOT('optionsConfigureToolbars()'), actionCollection())
path = Dir.getwd() + '/'
setGeometry(0, 0, 600, 500)
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()
diff --git a/korundum/rubylib/examples/uisampler.rb b/korundum/rubylib/examples/uisampler.rb
index b24b59aa..bed43c44 100644
--- a/korundum/rubylib/examples/uisampler.rb
+++ b/korundum/rubylib/examples/uisampler.rb
@@ -160,7 +160,7 @@ class MainWin < KDE::MainWindow
setCentralWidget(@mainView)
initListView()
- connect(@tree, SIGNAL("clicked(TQListViewItem*)"), self, SLOT('lvClicked(TQListViewItem*)'))
+ connect(@tree, TQ_SIGNAL("clicked(TQListViewItem*)"), self, TQ_SLOT('lvClicked(TQListViewItem*)'))
@edit = nil
@currentPageObj = nil
diff --git a/korundum/rubylib/examples/uitdemdi.rb b/korundum/rubylib/examples/uitdemdi.rb
index 3b67b9e1..fe5655c6 100644
--- a/korundum/rubylib/examples/uitdemdi.rb
+++ b/korundum/rubylib/examples/uitdemdi.rb
@@ -54,9 +54,9 @@ class KmdiExample < KDE::MdiMainFrm
@viewIcons = ['network', 'email', 'stop', 'back', 'forward']
@toolIcons = ['view_icon', 'configure']
- openNewAction = StdAction.openNew(self, SLOT('newView()'), actionCollection())
- quitAction = StdAction.quit(self, SLOT('close()'), actionCollection())
- closeAction = StdAction.close(self, SLOT('closeActiveChild()'), actionCollection())
+ openNewAction = StdAction.openNew(self, TQ_SLOT('newView()'), actionCollection())
+ quitAction = StdAction.quit(self, TQ_SLOT('close()'), actionCollection())
+ closeAction = StdAction.close(self, TQ_SLOT('closeActiveChild()'), actionCollection())
uifilebase = Dir.getwd + '/uitdemdi.rc'
createGUI(uifilebase)
@@ -82,9 +82,9 @@ class KmdiExample < KDE::MdiMainFrm
makeView("View #{idx.to_s}", ico, ico)
end
- connect(self, SIGNAL('viewActivated(KMdiChildView*)'), self, SLOT('activatedMessage(KMdiChildView*)'))
- connect(self, SIGNAL('viewActivated(KMdiChildView*)'), self, SLOT('syncFromChildView(KMdiChildView*)'))
- connect(@maintool, SIGNAL('selectionChanged(TQListBoxItem*)'), self, SLOT('syncFromMainTool(TQListBoxItem*)'))
+ connect(self, TQ_SIGNAL('viewActivated(KMdiChildView*)'), self, TQ_SLOT('activatedMessage(KMdiChildView*)'))
+ connect(self, TQ_SIGNAL('viewActivated(KMdiChildView*)'), self, TQ_SLOT('syncFromChildView(KMdiChildView*)'))
+ connect(@maintool, TQ_SIGNAL('selectionChanged(TQListBoxItem*)'), self, TQ_SLOT('syncFromMainTool(TQListBoxItem*)'))
syncFromChildView(activeWindow())
end
@@ -128,7 +128,7 @@ class KmdiExample < KDE::MdiMainFrm
pxm.setPixmap(getIcon(icon, Icon::NoGroup, KDE::Icon::SizeLarge))
addWindow(view)
@mainToolWidget.insertItem(label)
- connect(view, SIGNAL('childWindowCloseRequest(KMdiChildView*)'), self, SLOT('closeChild(KMdiChildView*)'))
+ connect(view, TQ_SIGNAL('childWindowCloseRequest(KMdiChildView*)'), self, TQ_SLOT('closeChild(KMdiChildView*)'))
end
def removeMainToolItem(view)
diff --git a/korundum/rubylib/examples/xmlgui.rb b/korundum/rubylib/examples/xmlgui.rb
index 84acbdde..ce5ca418 100755
--- a/korundum/rubylib/examples/xmlgui.rb
+++ b/korundum/rubylib/examples/xmlgui.rb
@@ -34,7 +34,7 @@ begin
m = KDE::MainWindow.new
@r = Receiver.new m
mActionCollection = m.actionCollection
- action = std_actions[:quit].create @r, SLOT("quit()"), mActionCollection
+ action = std_actions[:quit].create @r, TQ_SLOT("quit()"), mActionCollection
m.createGUI Dir.pwd + "/xmlgui.rc"
app.setMainWidget(m)
m.show
diff --git a/korundum/rubylib/examples/xmlmenudemo.rb b/korundum/rubylib/examples/xmlmenudemo.rb
index 8d9d5c94..e619a1c6 100644
--- a/korundum/rubylib/examples/xmlmenudemo.rb
+++ b/korundum/rubylib/examples/xmlmenudemo.rb
@@ -81,22 +81,22 @@ class MainWin < KDE::MainWindow
acts = actionCollection()
# "File" menu items
- newAction = KDE::StdAction.openNew(self, SLOT('slotNew()'), acts)
- openAction = KDE::StdAction.open(self, SLOT('slotOpen()'), acts)
- @saveAction = KDE::StdAction.save(self, SLOT('slotSave()'), acts)
- @saveAsAction = KDE::StdAction.saveAs(self, SLOT('slotSaveAs()'), acts)
- printAction = KDE::StdAction.print(self, SLOT('slotPrint()'), acts)
- quitAction = KDE::StdAction.quit(self, SLOT('slotQuit()'), acts)
+ newAction = KDE::StdAction.openNew(self, TQ_SLOT('slotNew()'), acts)
+ openAction = KDE::StdAction.open(self, TQ_SLOT('slotOpen()'), acts)
+ @saveAction = KDE::StdAction.save(self, TQ_SLOT('slotSave()'), acts)
+ @saveAsAction = KDE::StdAction.saveAs(self, TQ_SLOT('slotSaveAs()'), acts)
+ printAction = KDE::StdAction.print(self, TQ_SLOT('slotPrint()'), acts)
+ quitAction = KDE::StdAction.quit(self, TQ_SLOT('slotQuit()'), acts)
# "Edit" menu items
- undoAction = KDE::StdAction.undo(self, SLOT('slotUndo()'), acts)
- redoAction = KDE::StdAction.redo(self, SLOT('slotRedo()'), acts)
- cutAction = KDE::StdAction.cut(self, SLOT('slotCut()'), acts)
- copyAction = KDE::StdAction.copy(self, SLOT('slotCopy()'), acts)
- pasteAction = KDE::StdAction.paste(self, SLOT('slotPaste()'), acts)
- findAction = KDE::StdAction.find(self, SLOT('slotFind()'), acts)
- findNextAction = KDE::StdAction.findNext(self, SLOT('slotFindNext()'), acts)
- replaceAction = KDE::StdAction.replace(self, SLOT('slotReplace()'), acts)
+ undoAction = KDE::StdAction.undo(self, TQ_SLOT('slotUndo()'), acts)
+ redoAction = KDE::StdAction.redo(self, TQ_SLOT('slotRedo()'), acts)
+ cutAction = KDE::StdAction.cut(self, TQ_SLOT('slotCut()'), acts)
+ copyAction = KDE::StdAction.copy(self, TQ_SLOT('slotCopy()'), acts)
+ pasteAction = KDE::StdAction.paste(self, TQ_SLOT('slotPaste()'), acts)
+ findAction = KDE::StdAction.find(self, TQ_SLOT('slotFind()'), acts)
+ findNextAction = KDE::StdAction.findNext(self, TQ_SLOT('slotFindNext()'), acts)
+ replaceAction = KDE::StdAction.replace(self, TQ_SLOT('slotReplace()'), acts)
# NOTE!!!! You must specify a parent and name for the action object in its constructor
# Normally in a constructor like
@@ -111,13 +111,13 @@ class MainWin < KDE::MainWindow
# object names - the variable the object is assigned to('specialAction')
# has no meaning in XNLGUI terms except through the objects 'name' member value
- specialAction = KDE::Action.new(i18n("Special"), KDE::Shortcut.new(0), self, SLOT('slotSpecial()'), acts, "specialActionName")
+ specialAction = KDE::Action.new(i18n("Special"), KDE::Shortcut.new(0), self, TQ_SLOT('slotSpecial()'), acts, "specialActionName")
# Demo menu items
# KDE::ToggleAction has an isChecked member and emits the "toggle" signal
toggle1Action = KDE::ToggleAction.new("Toggle 1", KDE::Shortcut.new(0), acts, "toggle1Action")
- toggle2Action = KDE::ToggleAction.new("Toggle 2", KDE::Shortcut.new(0), self, SLOT('slotToggle2()'), acts, "toggle2Action")
+ toggle2Action = KDE::ToggleAction.new("Toggle 2", KDE::Shortcut.new(0), self, TQ_SLOT('slotToggle2()'), acts, "toggle2Action")
# A separator - create once/use everywhere
separateAction = KDE::ActionSeparator.new(acts, "separateAction")
@@ -146,15 +146,15 @@ class MainWin < KDE::MainWindow
# separators). Creating the KDE::StdActions alone is sufficient - you
# could delete their references from the *ui.rc file and the menu
# items would still be created via ui_standards.rc
- actionMenu.insert(KDE::StdAction.zoomIn(self, SLOT('slotZoomIn()'), acts))
- actionMenu.insert(KDE::StdAction.zoomOut(self, SLOT('slotZoomOut()'), acts))
+ actionMenu.insert(KDE::StdAction.zoomIn(self, TQ_SLOT('slotZoomIn()'), acts))
+ actionMenu.insert(KDE::StdAction.zoomOut(self, TQ_SLOT('slotZoomOut()'), acts))
- radio1Action = KDE::RadioAction.new("Radio 1", KDE::Shortcut.new(0), self, SLOT('slotRadio()'), acts, "radio1")
+ radio1Action = KDE::RadioAction.new("Radio 1", KDE::Shortcut.new(0), self, TQ_SLOT('slotRadio()'), acts, "radio1")
radio1Action.setExclusiveGroup("Radio")
radio1Action.setChecked(true)
- radio2Action = KDE::RadioAction.new("Radio 2", KDE::Shortcut.new(0), self, SLOT('slotRadio()'), acts, "radio2")
+ radio2Action = KDE::RadioAction.new("Radio 2", KDE::Shortcut.new(0), self, TQ_SLOT('slotRadio()'), acts, "radio2")
radio2Action.setExclusiveGroup("Radio")
- radio3Action = KDE::RadioAction.new("Radio 3", KDE::Shortcut.new(0), self, SLOT('slotRadio()'), acts, "radio3")
+ radio3Action = KDE::RadioAction.new("Radio 3", KDE::Shortcut.new(0), self, TQ_SLOT('slotRadio()'), acts, "radio3")
radio3Action.setExclusiveGroup("Radio")
end
@@ -184,7 +184,7 @@ class MainWin < KDE::MainWindow
# in this case only
(0...fakeFiles.length).each do |i|
act = KDE::Action.new(i18n(" {i.to_s} #{fakeFiles[i]}"), KDE::Shortcut.new(0),
- self, SLOT('slotFake()'), nil, fakeFiles[i].sub(/.sip$/,'') + "open")
+ self, TQ_SLOT('slotFake()'), nil, fakeFiles[i].sub(/.sip$/,'') + "open")
dynamicActionsList << act
end
diff --git a/korundum/rubylib/templates/annotated/menuapp1.rb b/korundum/rubylib/templates/annotated/menuapp1.rb
index bf4ea83c..df44cee4 100644
--- a/korundum/rubylib/templates/annotated/menuapp1.rb
+++ b/korundum/rubylib/templates/annotated/menuapp1.rb
@@ -87,21 +87,21 @@ class MainWin < KDE::MainWindow
# need to instantiate KDE::StdAccel
# "File" menu items
- fileMenu.insertItem(i18n("New"), self, SLOT('slotNew()'), TQt::KeySequence.new(KDE::StdAccel.openNew().keyCodeQt()))
- fileMenu.insertItem(i18n("Open"), self, SLOT('slotOpen()'), TQt::KeySequence.new(KDE::StdAccel.open().keyCodeQt()))
+ fileMenu.insertItem(i18n("New"), self, TQ_SLOT('slotNew()'), TQt::KeySequence.new(KDE::StdAccel.openNew().keyCodeQt()))
+ fileMenu.insertItem(i18n("Open"), self, TQ_SLOT('slotOpen()'), TQt::KeySequence.new(KDE::StdAccel.open().keyCodeQt()))
fileMenu.insertSeparator()
- fileMenu.insertItem(i18n("Save"), self, SLOT('slotSave()'), TQt::KeySequence.new(KDE::StdAccel.save().keyCodeQt()))
+ fileMenu.insertItem(i18n("Save"), self, TQ_SLOT('slotSave()'), TQt::KeySequence.new(KDE::StdAccel.save().keyCodeQt()))
# TDEStdAccel doesn't have a standard accelerator for 'Save As',
# so we omit it - insertItem uses the default value
- fileMenu.insertItem(i18n("SaveAs"), self, SLOT('slotSaveAs()'))
+ fileMenu.insertItem(i18n("SaveAs"), self, TQ_SLOT('slotSaveAs()'))
# This inserts a line between groups of items in a menu
fileMenu.insertSeparator()
- fileMenu.insertItem(i18n("Print"), self, SLOT('slotPrint()'), TQt::KeySequence.new(KDE::StdAccel.print().keyCodeQt()))
+ fileMenu.insertItem(i18n("Print"), self, TQ_SLOT('slotPrint()'), TQt::KeySequence.new(KDE::StdAccel.print().keyCodeQt()))
fileMenu.insertSeparator()
- fileMenu.insertItem(i18n("&Quit"), self, SLOT('slotQuit()'), TQt::KeySequence.new(KDE::StdAccel.quit().keyCodeQt()))
+ fileMenu.insertItem(i18n("&Quit"), self, TQ_SLOT('slotQuit()'), TQt::KeySequence.new(KDE::StdAccel.quit().keyCodeQt()))
# Put fileMenu (as the File menu) into the menu bar
# 'menuBar' is a predefined object owned by KDE::MainWindow
@@ -110,16 +110,16 @@ class MainWin < KDE::MainWindow
editMenu = TQt::PopupMenu.new(self)
# "Edit" menu items
- editMenu.insertItem(i18n("Undo"), self, SLOT('slotUndo()'), TQt::KeySequence.new(KDE::StdAccel.undo().keyCodeQt()))
- editMenu.insertItem(i18n("Redo"), self, SLOT('slotRedo()'), TQt::KeySequence.new(KDE::StdAccel.redo().keyCodeQt()))
+ editMenu.insertItem(i18n("Undo"), self, TQ_SLOT('slotUndo()'), TQt::KeySequence.new(KDE::StdAccel.undo().keyCodeQt()))
+ editMenu.insertItem(i18n("Redo"), self, TQ_SLOT('slotRedo()'), TQt::KeySequence.new(KDE::StdAccel.redo().keyCodeQt()))
editMenu.insertSeparator()
- editMenu.insertItem(i18n("Cut"), self, SLOT('slotCut()'), TQt::KeySequence.new(KDE::StdAccel.cut().keyCodeQt()))
- editMenu.insertItem(i18n("Copy"), self, SLOT('slotCopy()'), TQt::KeySequence.new(KDE::StdAccel.copy().keyCodeQt()))
- editMenu.insertItem(i18n("Paste"), self, SLOT('slotPaste()'), TQt::KeySequence.new(KDE::StdAccel.paste().keyCodeQt()))
+ editMenu.insertItem(i18n("Cut"), self, TQ_SLOT('slotCut()'), TQt::KeySequence.new(KDE::StdAccel.cut().keyCodeQt()))
+ editMenu.insertItem(i18n("Copy"), self, TQ_SLOT('slotCopy()'), TQt::KeySequence.new(KDE::StdAccel.copy().keyCodeQt()))
+ editMenu.insertItem(i18n("Paste"), self, TQ_SLOT('slotPaste()'), TQt::KeySequence.new(KDE::StdAccel.paste().keyCodeQt()))
editMenu.insertSeparator()
- editMenu.insertItem(i18n("Find"), self, SLOT('slotFind()'), TQt::KeySequence.new(KDE::StdAccel.find().keyCodeQt()))
- editMenu.insertItem(i18n("Find Next"), self, SLOT('slotFindNext()'), TQt::KeySequence.new(KDE::StdAccel.findNext().keyCodeQt()))
- editMenu.insertItem(i18n("Replace"), self, SLOT('slotReplace()'), TQt::KeySequence.new(KDE::StdAccel.replace().keyCodeQt()))
+ editMenu.insertItem(i18n("Find"), self, TQ_SLOT('slotFind()'), TQt::KeySequence.new(KDE::StdAccel.find().keyCodeQt()))
+ editMenu.insertItem(i18n("Find Next"), self, TQ_SLOT('slotFindNext()'), TQt::KeySequence.new(KDE::StdAccel.findNext().keyCodeQt()))
+ editMenu.insertItem(i18n("Replace"), self, TQ_SLOT('slotReplace()'), TQt::KeySequence.new(KDE::StdAccel.replace().keyCodeQt()))
# Put editMenu (as the Edit menu) into the menu bar
@@ -150,18 +150,18 @@ class MainWin < KDE::MainWindow
# are easier ways to do this - see other menuapp templates for easier
# methods using KDE::Action/KDE::StdAction
- toolBar().insertButton(icons.loadIcon("filenew", KDE::Icon::Toolbar), TOOLBAR_NEW, SIGNAL("clicked(int)"),
- self, SLOT('slotNew()'), true, "New")
- toolBar().insertButton(icons.loadIcon("fileopen", KDE::Icon::Toolbar), TOOLBAR_OPEN, SIGNAL("clicked(int)"),
- self, SLOT('slotOpen()'), true, "Open")
- toolBar().insertButton(icons.loadIcon("filesave", KDE::Icon::Toolbar), TOOLBAR_SAVE, SIGNAL("clicked(int)"),
- self, SLOT('slotSave()'), true, "Save")
- toolBar().insertButton(icons.loadIcon("editcut", KDE::Icon::Toolbar), TOOLBAR_CUT, SIGNAL("clicked(int)"),
- self, SLOT('slotCut()'), true, "Cut")
- toolBar().insertButton(icons.loadIcon("editcopy", KDE::Icon::Toolbar), TOOLBAR_COPY, SIGNAL("clicked(int)"),
- self, SLOT('slotCopy()'), true, "Copy")
- toolBar().insertButton(icons.loadIcon("editpaste", KDE::Icon::Toolbar), TOOLBAR_PASTE, SIGNAL("clicked(int)"),
- self, SLOT('slotPaste()'), true, "Paste")
+ toolBar().insertButton(icons.loadIcon("filenew", KDE::Icon::Toolbar), TOOLBAR_NEW, TQ_SIGNAL("clicked(int)"),
+ self, TQ_SLOT('slotNew()'), true, "New")
+ toolBar().insertButton(icons.loadIcon("fileopen", KDE::Icon::Toolbar), TOOLBAR_OPEN, TQ_SIGNAL("clicked(int)"),
+ self, TQ_SLOT('slotOpen()'), true, "Open")
+ toolBar().insertButton(icons.loadIcon("filesave", KDE::Icon::Toolbar), TOOLBAR_SAVE, TQ_SIGNAL("clicked(int)"),
+ self, TQ_SLOT('slotSave()'), true, "Save")
+ toolBar().insertButton(icons.loadIcon("editcut", KDE::Icon::Toolbar), TOOLBAR_CUT, TQ_SIGNAL("clicked(int)"),
+ self, TQ_SLOT('slotCut()'), true, "Cut")
+ toolBar().insertButton(icons.loadIcon("editcopy", KDE::Icon::Toolbar), TOOLBAR_COPY, TQ_SIGNAL("clicked(int)"),
+ self, TQ_SLOT('slotCopy()'), true, "Copy")
+ toolBar().insertButton(icons.loadIcon("editpaste", KDE::Icon::Toolbar), TOOLBAR_PASTE, TQ_SIGNAL("clicked(int)"),
+ self, TQ_SLOT('slotPaste()'), true, "Paste")
end
def initStatusBar()
diff --git a/korundum/rubylib/templates/annotated/menuapp2.rb b/korundum/rubylib/templates/annotated/menuapp2.rb
index f8778163..d471423e 100644
--- a/korundum/rubylib/templates/annotated/menuapp2.rb
+++ b/korundum/rubylib/templates/annotated/menuapp2.rb
@@ -87,22 +87,22 @@ class MainWin < KDE::MainWindow
# where the code for the action is located
# "File" menu items
- @newAction = KDE::StdAction.openNew(self, SLOT("slotNew()"), actionCollection())
- @openAction = KDE::StdAction.open(self, SLOT("slotOpen()"), actionCollection())
- @saveAction = KDE::StdAction.save(self, SLOT("slotSave()"), actionCollection())
- @saveAsAction = KDE::StdAction.saveAs(self, SLOT("slotSaveAs()"), actionCollection())
- @printAction = KDE::StdAction.print(self, SLOT("slotPrint()"), actionCollection())
- @quitAction = KDE::StdAction.quit(self, SLOT("slotQuit()"), actionCollection())
+ @newAction = KDE::StdAction.openNew(self, TQ_SLOT("slotNew()"), actionCollection())
+ @openAction = KDE::StdAction.open(self, TQ_SLOT("slotOpen()"), actionCollection())
+ @saveAction = KDE::StdAction.save(self, TQ_SLOT("slotSave()"), actionCollection())
+ @saveAsAction = KDE::StdAction.saveAs(self, TQ_SLOT("slotSaveAs()"), actionCollection())
+ @printAction = KDE::StdAction.print(self, TQ_SLOT("slotPrint()"), actionCollection())
+ @quitAction = KDE::StdAction.quit(self, TQ_SLOT("slotQuit()"), actionCollection())
# "Edit" menu items
- @undoAction = KDE::StdAction.undo(self, SLOT("slotUndo()"), actionCollection())
- @redoAction = KDE::StdAction.redo(self, SLOT("slotRedo()"), actionCollection())
- @cutAction = KDE::StdAction.cut(self, SLOT("slotCut()"), actionCollection())
- @copyAction = KDE::StdAction.copy(self, SLOT("slotCopy()"), actionCollection())
- @pasteAction = KDE::StdAction.paste(self, SLOT("slotPaste()"), actionCollection())
- @findAction = KDE::StdAction.find(self, SLOT("slotFind()"), actionCollection())
- @findNextAction = KDE::StdAction.findNext(self, SLOT("slotFindNext()"), actionCollection())
- @replaceAction = KDE::StdAction.replace(self, SLOT("slotReplace()"), actionCollection())
+ @undoAction = KDE::StdAction.undo(self, TQ_SLOT("slotUndo()"), actionCollection())
+ @redoAction = KDE::StdAction.redo(self, TQ_SLOT("slotRedo()"), actionCollection())
+ @cutAction = KDE::StdAction.cut(self, TQ_SLOT("slotCut()"), actionCollection())
+ @copyAction = KDE::StdAction.copy(self, TQ_SLOT("slotCopy()"), actionCollection())
+ @pasteAction = KDE::StdAction.paste(self, TQ_SLOT("slotPaste()"), actionCollection())
+ @findAction = KDE::StdAction.find(self, TQ_SLOT("slotFind()"), actionCollection())
+ @findNextAction = KDE::StdAction.findNext(self, TQ_SLOT("slotFindNext()"), actionCollection())
+ @replaceAction = KDE::StdAction.replace(self, TQ_SLOT("slotReplace()"), actionCollection())
# For actions that are not "standard", you can create your
# own actions using KDE::Action. This example doesn't include
@@ -114,7 +114,7 @@ class MainWin < KDE::MainWindow
# This TDEAction constructor requires a string, an accelerator (0
# in this case), a slot, and a TQObject (None in this case)
- @specialAction = KDE::Action.new(i18n("Special"), KDE::Shortcut.new(0), self, SLOT('slotSpecial()'), actionCollection(), "specialActionName")
+ @specialAction = KDE::Action.new(i18n("Special"), KDE::Shortcut.new(0), self, TQ_SLOT('slotSpecial()'), actionCollection(), "specialActionName")
end
def initMenus()
diff --git a/korundum/rubylib/templates/annotated/menuapp3.rb b/korundum/rubylib/templates/annotated/menuapp3.rb
index 37fbf2b4..f1b76940 100644
--- a/korundum/rubylib/templates/annotated/menuapp3.rb
+++ b/korundum/rubylib/templates/annotated/menuapp3.rb
@@ -96,29 +96,29 @@ class MainWin < KDE::MainWindow
# in the toolBar.
# "File" menu items
- @newAction = KDE::StdAction.openNew(self, SLOT("slotNew()"), actionCollection())
- @openAction = KDE::StdAction.open(self, SLOT("slotOpen()"), actionCollection())
- @saveAction = KDE::StdAction.save(self, SLOT("slotSave()"), actionCollection())
- @saveAsAction = KDE::StdAction.saveAs(self, SLOT("slotSaveAs()"), actionCollection())
- @printAction = KDE::StdAction.print(self, SLOT("slotPrint()"), actionCollection())
- @quitAction = KDE::StdAction.quit(self, SLOT("slotQuit()"), actionCollection())
+ @newAction = KDE::StdAction.openNew(self, TQ_SLOT("slotNew()"), actionCollection())
+ @openAction = KDE::StdAction.open(self, TQ_SLOT("slotOpen()"), actionCollection())
+ @saveAction = KDE::StdAction.save(self, TQ_SLOT("slotSave()"), actionCollection())
+ @saveAsAction = KDE::StdAction.saveAs(self, TQ_SLOT("slotSaveAs()"), actionCollection())
+ @printAction = KDE::StdAction.print(self, TQ_SLOT("slotPrint()"), actionCollection())
+ @quitAction = KDE::StdAction.quit(self, TQ_SLOT("slotQuit()"), actionCollection())
# "Edit" menu items
- @undoAction = KDE::StdAction.undo(self, SLOT("slotUndo()"), actionCollection())
- @redoAction = KDE::StdAction.redo(self, SLOT("slotRedo()"), actionCollection())
- @cutAction = KDE::StdAction.cut(self, SLOT("slotCut()"), actionCollection())
- @copyAction = KDE::StdAction.copy(self, SLOT("slotCopy()"), actionCollection())
- @pasteAction = KDE::StdAction.paste(self, SLOT("slotPaste()"), actionCollection())
- @findAction = KDE::StdAction.find(self, SLOT("slotFind()"), actionCollection())
- @findNextAction = KDE::StdAction.findNext(self, SLOT("slotFindNext()"), actionCollection())
- @replaceAction = KDE::StdAction.replace(self, SLOT("slotReplace()"), actionCollection())
+ @undoAction = KDE::StdAction.undo(self, TQ_SLOT("slotUndo()"), actionCollection())
+ @redoAction = KDE::StdAction.redo(self, TQ_SLOT("slotRedo()"), actionCollection())
+ @cutAction = KDE::StdAction.cut(self, TQ_SLOT("slotCut()"), actionCollection())
+ @copyAction = KDE::StdAction.copy(self, TQ_SLOT("slotCopy()"), actionCollection())
+ @pasteAction = KDE::StdAction.paste(self, TQ_SLOT("slotPaste()"), actionCollection())
+ @findAction = KDE::StdAction.find(self, TQ_SLOT("slotFind()"), actionCollection())
+ @findNextAction = KDE::StdAction.findNext(self, TQ_SLOT("slotFindNext()"), actionCollection())
+ @replaceAction = KDE::StdAction.replace(self, TQ_SLOT("slotReplace()"), actionCollection())
# For ANYTHING constructed from KDE::Action or its descendants (KDE::ActionMenu, KDE::ActionSeparator,
# KDE::FontAction, etc) you MUST provide the actionCollection () parent and an object
# name ("specialActionName") or the XMLGUI mechanism will not be able to locate the
# action. XMLGUI finds the action via its member name value, NOT via its variable name.
- @specialAction = KDE::Action.new(i18n("Special"), KDE::Shortcut.new(0), self, SLOT('slotSpecial()'), actionCollection(), "specialActionName")
+ @specialAction = KDE::Action.new(i18n("Special"), KDE::Shortcut.new(0), self, TQ_SLOT('slotSpecial()'), actionCollection(), "specialActionName")
end
def initStatusBar()
diff --git a/korundum/rubylib/templates/annotated/systray1.rb b/korundum/rubylib/templates/annotated/systray1.rb
index 10bdb5c8..1945fa9e 100644
--- a/korundum/rubylib/templates/annotated/systray1.rb
+++ b/korundum/rubylib/templates/annotated/systray1.rb
@@ -60,7 +60,7 @@ class MainWin < KDE::MainWindow
# KDE::SystemTray hides or shows its parent when the system tray icon is clicked
systray = KDE::SystemTray.new(self)
systray.setPixmap(icons.loadIcon("process-stop", 0))
- connect(systray, SIGNAL("quitSelected()"), self, SLOT('slotQuitSelected()'))
+ connect(systray, TQ_SIGNAL("quitSelected()"), self, TQ_SLOT('slotQuitSelected()'))
systray.show()
end
diff --git a/korundum/rubylib/templates/basic/menuapp1.rb b/korundum/rubylib/templates/basic/menuapp1.rb
index 69902534..6037376b 100644
--- a/korundum/rubylib/templates/basic/menuapp1.rb
+++ b/korundum/rubylib/templates/basic/menuapp1.rb
@@ -71,31 +71,31 @@ class MainWin < KDE::MainWindow
fileMenu = TQt::PopupMenu.new(self)
# "File" menu items
- fileMenu.insertItem(i18n("New"), self, SLOT('slotNew()'), TQt::KeySequence.new(KDE::StdAccel.openNew().keyCodeQt()))
- fileMenu.insertItem(i18n("Open"), self, SLOT('slotOpen()'), TQt::KeySequence.new(KDE::StdAccel.open().keyCodeQt()))
+ fileMenu.insertItem(i18n("New"), self, TQ_SLOT('slotNew()'), TQt::KeySequence.new(KDE::StdAccel.openNew().keyCodeQt()))
+ fileMenu.insertItem(i18n("Open"), self, TQ_SLOT('slotOpen()'), TQt::KeySequence.new(KDE::StdAccel.open().keyCodeQt()))
fileMenu.insertSeparator()
- fileMenu.insertItem(i18n("Save"), self, SLOT('slotSave()'), TQt::KeySequence.new(KDE::StdAccel.save().keyCodeQt()))
- fileMenu.insertItem(i18n("SaveAs"), self, SLOT('slotSaveAs()'))
+ fileMenu.insertItem(i18n("Save"), self, TQ_SLOT('slotSave()'), TQt::KeySequence.new(KDE::StdAccel.save().keyCodeQt()))
+ fileMenu.insertItem(i18n("SaveAs"), self, TQ_SLOT('slotSaveAs()'))
fileMenu.insertSeparator()
- fileMenu.insertItem(i18n("Print"), self, SLOT('slotPrint()'), TQt::KeySequence.new(KDE::StdAccel.print().keyCodeQt()))
+ fileMenu.insertItem(i18n("Print"), self, TQ_SLOT('slotPrint()'), TQt::KeySequence.new(KDE::StdAccel.print().keyCodeQt()))
fileMenu.insertSeparator()
- fileMenu.insertItem(i18n("&Quit"), self, SLOT('slotQuit()'), TQt::KeySequence.new(KDE::StdAccel.quit().keyCodeQt()))
+ fileMenu.insertItem(i18n("&Quit"), self, TQ_SLOT('slotQuit()'), TQt::KeySequence.new(KDE::StdAccel.quit().keyCodeQt()))
menuBar().insertItem(i18n("&File"), fileMenu)
editMenu = TQt::PopupMenu.new(self)
# "Edit" menu items
- editMenu.insertItem(i18n("Undo"), self, SLOT('slotUndo()'), TQt::KeySequence.new(KDE::StdAccel.undo().keyCodeQt()))
- editMenu.insertItem(i18n("Redo"), self, SLOT('slotRedo()'), TQt::KeySequence.new(KDE::StdAccel.redo().keyCodeQt()))
+ editMenu.insertItem(i18n("Undo"), self, TQ_SLOT('slotUndo()'), TQt::KeySequence.new(KDE::StdAccel.undo().keyCodeQt()))
+ editMenu.insertItem(i18n("Redo"), self, TQ_SLOT('slotRedo()'), TQt::KeySequence.new(KDE::StdAccel.redo().keyCodeQt()))
editMenu.insertSeparator()
- editMenu.insertItem(i18n("Cut"), self, SLOT('slotCut()'), TQt::KeySequence.new(KDE::StdAccel.cut().keyCodeQt()))
- editMenu.insertItem(i18n("Copy"), self, SLOT('slotCopy()'), TQt::KeySequence.new(KDE::StdAccel.copy().keyCodeQt()))
- editMenu.insertItem(i18n("Paste"), self, SLOT('slotPaste()'), TQt::KeySequence.new(KDE::StdAccel.paste().keyCodeQt()))
+ editMenu.insertItem(i18n("Cut"), self, TQ_SLOT('slotCut()'), TQt::KeySequence.new(KDE::StdAccel.cut().keyCodeQt()))
+ editMenu.insertItem(i18n("Copy"), self, TQ_SLOT('slotCopy()'), TQt::KeySequence.new(KDE::StdAccel.copy().keyCodeQt()))
+ editMenu.insertItem(i18n("Paste"), self, TQ_SLOT('slotPaste()'), TQt::KeySequence.new(KDE::StdAccel.paste().keyCodeQt()))
editMenu.insertSeparator()
- editMenu.insertItem(i18n("Find"), self, SLOT('slotFind()'), TQt::KeySequence.new(KDE::StdAccel.find().keyCodeQt()))
- editMenu.insertItem(i18n("Find Next"), self, SLOT('slotFindNext()'), TQt::KeySequence.new(KDE::StdAccel.findNext().keyCodeQt()))
- editMenu.insertItem(i18n("Replace"), self, SLOT('slotReplace()'), TQt::KeySequence.new(KDE::StdAccel.replace().keyCodeQt()))
+ editMenu.insertItem(i18n("Find"), self, TQ_SLOT('slotFind()'), TQt::KeySequence.new(KDE::StdAccel.find().keyCodeQt()))
+ editMenu.insertItem(i18n("Find Next"), self, TQ_SLOT('slotFindNext()'), TQt::KeySequence.new(KDE::StdAccel.findNext().keyCodeQt()))
+ editMenu.insertItem(i18n("Replace"), self, TQ_SLOT('slotReplace()'), TQt::KeySequence.new(KDE::StdAccel.replace().keyCodeQt()))
menuBar().insertItem(i18n("&Edit"), editMenu)
@@ -106,18 +106,18 @@ class MainWin < KDE::MainWindow
def initToolBar()
icons = KDE::IconLoader.new()
- toolBar().insertButton(icons.loadIcon("filenew", KDE::Icon::Toolbar), TOOLBAR_NEW, SIGNAL("clicked(int)"),
- self, SLOT('slotNew()'), true, "New")
- toolBar().insertButton(icons.loadIcon("fileopen", KDE::Icon::Toolbar), TOOLBAR_OPEN, SIGNAL("clicked(int)"),
- self, SLOT('slotOpen()'), true, "Open")
- toolBar().insertButton(icons.loadIcon("filesave", KDE::Icon::Toolbar), TOOLBAR_SAVE, SIGNAL("clicked(int)"),
- self, SLOT('slotSave()'), true, "Save")
- toolBar().insertButton(icons.loadIcon("editcut", KDE::Icon::Toolbar), TOOLBAR_CUT, SIGNAL("clicked(int)"),
- self, SLOT('slotCut()'), true, "Cut")
- toolBar().insertButton(icons.loadIcon("editcopy", KDE::Icon::Toolbar), TOOLBAR_COPY, SIGNAL("clicked(int)"),
- self, SLOT('slotCopy()'), true, "Copy")
- toolBar().insertButton(icons.loadIcon("editpaste", KDE::Icon::Toolbar), TOOLBAR_PASTE, SIGNAL("clicked(int)"),
- self, SLOT('slotPaste()'), true, "Paste")
+ toolBar().insertButton(icons.loadIcon("filenew", KDE::Icon::Toolbar), TOOLBAR_NEW, TQ_SIGNAL("clicked(int)"),
+ self, TQ_SLOT('slotNew()'), true, "New")
+ toolBar().insertButton(icons.loadIcon("fileopen", KDE::Icon::Toolbar), TOOLBAR_OPEN, TQ_SIGNAL("clicked(int)"),
+ self, TQ_SLOT('slotOpen()'), true, "Open")
+ toolBar().insertButton(icons.loadIcon("filesave", KDE::Icon::Toolbar), TOOLBAR_SAVE, TQ_SIGNAL("clicked(int)"),
+ self, TQ_SLOT('slotSave()'), true, "Save")
+ toolBar().insertButton(icons.loadIcon("editcut", KDE::Icon::Toolbar), TOOLBAR_CUT, TQ_SIGNAL("clicked(int)"),
+ self, TQ_SLOT('slotCut()'), true, "Cut")
+ toolBar().insertButton(icons.loadIcon("editcopy", KDE::Icon::Toolbar), TOOLBAR_COPY, TQ_SIGNAL("clicked(int)"),
+ self, TQ_SLOT('slotCopy()'), true, "Copy")
+ toolBar().insertButton(icons.loadIcon("editpaste", KDE::Icon::Toolbar), TOOLBAR_PASTE, TQ_SIGNAL("clicked(int)"),
+ self, TQ_SLOT('slotPaste()'), true, "Paste")
end
def initStatusBar()
diff --git a/korundum/rubylib/templates/basic/menuapp2.rb b/korundum/rubylib/templates/basic/menuapp2.rb
index df1cadb2..67be6f84 100644
--- a/korundum/rubylib/templates/basic/menuapp2.rb
+++ b/korundum/rubylib/templates/basic/menuapp2.rb
@@ -63,23 +63,23 @@ class MainWin < KDE::MainWindow
def initActions()
# "File" menu items
- @newAction = KDE::StdAction.openNew(self, SLOT("slotNew()"), actionCollection())
- @openAction = KDE::StdAction.open(self, SLOT("slotOpen()"), actionCollection())
- @saveAction = KDE::StdAction.save(self, SLOT("slotSave()"), actionCollection())
- @saveAsAction = KDE::StdAction.saveAs(self, SLOT("slotSaveAs()"), actionCollection())
- @printAction = KDE::StdAction.print(self, SLOT("slotPrint()"), actionCollection())
- @quitAction = KDE::StdAction.quit(self, SLOT("slotQuit()"), actionCollection())
+ @newAction = KDE::StdAction.openNew(self, TQ_SLOT("slotNew()"), actionCollection())
+ @openAction = KDE::StdAction.open(self, TQ_SLOT("slotOpen()"), actionCollection())
+ @saveAction = KDE::StdAction.save(self, TQ_SLOT("slotSave()"), actionCollection())
+ @saveAsAction = KDE::StdAction.saveAs(self, TQ_SLOT("slotSaveAs()"), actionCollection())
+ @printAction = KDE::StdAction.print(self, TQ_SLOT("slotPrint()"), actionCollection())
+ @quitAction = KDE::StdAction.quit(self, TQ_SLOT("slotQuit()"), actionCollection())
# "Edit" menu items
- @undoAction = KDE::StdAction.undo(self, SLOT("slotUndo()"), actionCollection())
- @redoAction = KDE::StdAction.redo(self, SLOT("slotRedo()"), actionCollection())
- @cutAction = KDE::StdAction.cut(self, SLOT("slotCut()"), actionCollection())
- @copyAction = KDE::StdAction.copy(self, SLOT("slotCopy()"), actionCollection())
- @pasteAction = KDE::StdAction.paste(self, SLOT("slotPaste()"), actionCollection())
- @findAction = KDE::StdAction.find(self, SLOT("slotFind()"), actionCollection())
- @findNextAction = KDE::StdAction.findNext(self, SLOT("slotFindNext()"), actionCollection())
- @replaceAction = KDE::StdAction.replace(self, SLOT("slotReplace()"), actionCollection())
- @specialAction = KDE::Action.new(i18n("Special"), KDE::Shortcut.new(0), self, SLOT('slotSpecial()'), actionCollection(), "specialActionName")
+ @undoAction = KDE::StdAction.undo(self, TQ_SLOT("slotUndo()"), actionCollection())
+ @redoAction = KDE::StdAction.redo(self, TQ_SLOT("slotRedo()"), actionCollection())
+ @cutAction = KDE::StdAction.cut(self, TQ_SLOT("slotCut()"), actionCollection())
+ @copyAction = KDE::StdAction.copy(self, TQ_SLOT("slotCopy()"), actionCollection())
+ @pasteAction = KDE::StdAction.paste(self, TQ_SLOT("slotPaste()"), actionCollection())
+ @findAction = KDE::StdAction.find(self, TQ_SLOT("slotFind()"), actionCollection())
+ @findNextAction = KDE::StdAction.findNext(self, TQ_SLOT("slotFindNext()"), actionCollection())
+ @replaceAction = KDE::StdAction.replace(self, TQ_SLOT("slotReplace()"), actionCollection())
+ @specialAction = KDE::Action.new(i18n("Special"), KDE::Shortcut.new(0), self, TQ_SLOT('slotSpecial()'), actionCollection(), "specialActionName")
end
def initMenus()
diff --git a/korundum/rubylib/templates/basic/menuapp3.rb b/korundum/rubylib/templates/basic/menuapp3.rb
index 7751e847..86deb9c8 100644
--- a/korundum/rubylib/templates/basic/menuapp3.rb
+++ b/korundum/rubylib/templates/basic/menuapp3.rb
@@ -59,24 +59,24 @@ class MainWin < KDE::MainWindow
def initActions()
# "File" menu items
- @newAction = KDE::StdAction.openNew(self, SLOT("slotNew()"), actionCollection())
- @openAction = KDE::StdAction.open(self, SLOT("slotOpen()"), actionCollection())
- @saveAction = KDE::StdAction.save(self, SLOT("slotSave()"), actionCollection())
- @saveAsAction = KDE::StdAction.saveAs(self, SLOT("slotSaveAs()"), actionCollection())
- @printAction = KDE::StdAction.print(self, SLOT("slotPrint()"), actionCollection())
- @quitAction = KDE::StdAction.quit(self, SLOT("slotQuit()"), actionCollection())
+ @newAction = KDE::StdAction.openNew(self, TQ_SLOT("slotNew()"), actionCollection())
+ @openAction = KDE::StdAction.open(self, TQ_SLOT("slotOpen()"), actionCollection())
+ @saveAction = KDE::StdAction.save(self, TQ_SLOT("slotSave()"), actionCollection())
+ @saveAsAction = KDE::StdAction.saveAs(self, TQ_SLOT("slotSaveAs()"), actionCollection())
+ @printAction = KDE::StdAction.print(self, TQ_SLOT("slotPrint()"), actionCollection())
+ @quitAction = KDE::StdAction.quit(self, TQ_SLOT("slotQuit()"), actionCollection())
# "Edit" menu items
- @undoAction = KDE::StdAction.undo(self, SLOT("slotUndo()"), actionCollection())
- @redoAction = KDE::StdAction.redo(self, SLOT("slotRedo()"), actionCollection())
- @cutAction = KDE::StdAction.cut(self, SLOT("slotCut()"), actionCollection())
- @copyAction = KDE::StdAction.copy(self, SLOT("slotCopy()"), actionCollection())
- @pasteAction = KDE::StdAction.paste(self, SLOT("slotPaste()"), actionCollection())
- @findAction = KDE::StdAction.find(self, SLOT("slotFind()"), actionCollection())
- @findNextAction = KDE::StdAction.findNext(self, SLOT("slotFindNext()"), actionCollection())
- @replaceAction = KDE::StdAction.replace(self, SLOT("slotReplace()"), actionCollection())
- @specialAction = KDE::Action.new(i18n("Special"), KDE::Shortcut.new(0), self, SLOT('slotSpecial()'), actionCollection(), "specialActionName")
+ @undoAction = KDE::StdAction.undo(self, TQ_SLOT("slotUndo()"), actionCollection())
+ @redoAction = KDE::StdAction.redo(self, TQ_SLOT("slotRedo()"), actionCollection())
+ @cutAction = KDE::StdAction.cut(self, TQ_SLOT("slotCut()"), actionCollection())
+ @copyAction = KDE::StdAction.copy(self, TQ_SLOT("slotCopy()"), actionCollection())
+ @pasteAction = KDE::StdAction.paste(self, TQ_SLOT("slotPaste()"), actionCollection())
+ @findAction = KDE::StdAction.find(self, TQ_SLOT("slotFind()"), actionCollection())
+ @findNextAction = KDE::StdAction.findNext(self, TQ_SLOT("slotFindNext()"), actionCollection())
+ @replaceAction = KDE::StdAction.replace(self, TQ_SLOT("slotReplace()"), actionCollection())
+ @specialAction = KDE::Action.new(i18n("Special"), KDE::Shortcut.new(0), self, TQ_SLOT('slotSpecial()'), actionCollection(), "specialActionName")
end
def initStatusBar()
diff --git a/korundum/rubylib/templates/basic/systray1.rb b/korundum/rubylib/templates/basic/systray1.rb
index b3a91155..e760caa4 100644
--- a/korundum/rubylib/templates/basic/systray1.rb
+++ b/korundum/rubylib/templates/basic/systray1.rb
@@ -45,7 +45,7 @@ class MainWin < KDE::MainWindow
systray = KDE::SystemTray.new(self)
systray.setPixmap(icons.loadIcon("process-stop", 0))
- connect(systray, SIGNAL("quitSelected()"), self, SLOT('slotQuitSelected()'))
+ connect(systray, TQ_SIGNAL("quitSelected()"), self, TQ_SLOT('slotQuitSelected()'))
systray.show()
end
diff --git a/korundum/rubylib/tutorials/p1/p1.rb b/korundum/rubylib/tutorials/p1/p1.rb
index f06c6b3e..a32edb7a 100644
--- a/korundum/rubylib/tutorials/p1/p1.rb
+++ b/korundum/rubylib/tutorials/p1/p1.rb
@@ -5,7 +5,7 @@ require 'Qt'
hello = TQt::PushButton.new( "Hello world!", nil )
hello.resize( 100, 30 )
- TQt::Object::connect( hello, SIGNAL('clicked()'), a, SLOT('quit()') )
+ TQt::Object::connect( hello, TQ_SIGNAL('clicked()'), a, TQ_SLOT('quit()') )
a.setMainWidget( hello )
hello.show()
diff --git a/korundum/rubylib/tutorials/p3/p3.rb b/korundum/rubylib/tutorials/p3/p3.rb
index 67360399..94940d59 100644
--- a/korundum/rubylib/tutorials/p3/p3.rb
+++ b/korundum/rubylib/tutorials/p3/p3.rb
@@ -8,9 +8,9 @@ class MainWindow < KDE::MainWindow
setCaption("KDE Tutorial - p3")
filemenu = TQt::PopupMenu.new
- filemenu.insertItem( i18n( "&Open" ), self, SLOT('fileOpen()') )
- filemenu.insertItem( i18n( "&Save" ), self, SLOT('fileSave()') )
- filemenu.insertItem( i18n( "&Quit" ), $kapp, SLOT('quit()') )
+ filemenu.insertItem( i18n( "&Open" ), self, TQ_SLOT('fileOpen()') )
+ filemenu.insertItem( i18n( "&Save" ), self, TQ_SLOT('fileSave()') )
+ filemenu.insertItem( i18n( "&Quit" ), $kapp, TQ_SLOT('quit()') )
about =
i18n("p3 1.0\n\n" +
diff --git a/korundum/rubylib/tutorials/p4/p4.rb b/korundum/rubylib/tutorials/p4/p4.rb
index 93306c86..8025a585 100644
--- a/korundum/rubylib/tutorials/p4/p4.rb
+++ b/korundum/rubylib/tutorials/p4/p4.rb
@@ -9,7 +9,7 @@ class MainWindow < KDE::MainWindow
setCaption("KDE Tutorial - p4")
filemenu = TQt::PopupMenu.new
- filemenu.insertItem( i18n( "&Quit" ), $kapp, SLOT( 'quit()' ) )
+ filemenu.insertItem( i18n( "&Quit" ), $kapp, TQ_SLOT( 'quit()' ) )
about =
i18n("p4 1.0\n\n" +
"(C) 1999-2002 Antonio Larrosa Jimenez\n" +
@@ -34,12 +34,12 @@ class MainWindow < KDE::MainWindow
@browser = KDE::HTMLPart.new( vbox )
@browser.openURL( KDE::URL.new(@location.text()) )
- connect( @location , SIGNAL( 'returnPressed()' ),
- self, SLOT( 'changeLocation()' ) )
+ connect( @location , TQ_SIGNAL( 'returnPressed()' ),
+ self, TQ_SLOT( 'changeLocation()' ) )
connect( @browser.browserExtension(),
- SIGNAL( 'openURLRequest( const KURL &, const KParts::URLArgs & )' ),
- self, SLOT( 'openURLRequest(const KURL &, const KParts::URLArgs & )' ) )
+ TQ_SIGNAL( 'openURLRequest( const KURL &, const KParts::URLArgs & )' ),
+ self, TQ_SLOT( 'openURLRequest(const KURL &, const KParts::URLArgs & )' ) )
setCentralWidget(vbox)
end
diff --git a/korundum/rubylib/tutorials/p5/p5.rb b/korundum/rubylib/tutorials/p5/p5.rb
index 40fb91a5..0325aa37 100644
--- a/korundum/rubylib/tutorials/p5/p5.rb
+++ b/korundum/rubylib/tutorials/p5/p5.rb
@@ -10,7 +10,7 @@ class MainWindow < KDE::MainWindow
setCaption("KDE Tutorial - p5")
filemenu = TQt::PopupMenu.new
- filemenu.insertItem( i18n( "&Quit" ), $kapp, SLOT( 'quit()' ) )
+ filemenu.insertItem( i18n( "&Quit" ), $kapp, TQ_SLOT( 'quit()' ) )
about =
i18n("p5 1.0\n\n" +
"(C) 1999-2002 Antonio Larrosa Jimenez\n" +
@@ -32,22 +32,22 @@ class MainWindow < KDE::MainWindow
@location = TQt::LineEdit.new( vbox )
@location.setText( "http://localhost" )
- connect( @location , SIGNAL( 'returnPressed()' ),
- self, SLOT( 'changeLocation()' ) )
+ connect( @location , TQ_SIGNAL( 'returnPressed()' ),
+ self, TQ_SLOT( 'changeLocation()' ) )
split = TQt::Splitter.new( vbox )
split.setOpaqueResize()
bookmark = TQt::PushButton.new( i18n("Add to Bookmarks"), split );
- connect( bookmark, SIGNAL( 'clicked()' ), self, SLOT( 'bookLocation()' ) )
+ connect( bookmark, TQ_SIGNAL( 'clicked()' ), self, TQ_SLOT( 'bookLocation()' ) )
@browser = KDE::HTMLPart.new( split )
@browser.openURL( KDE::URL.new(@location.text()) )
connect( @browser.browserExtension(),
- SIGNAL( 'openURLRequest( const KURL &, const KParts::URLArgs & )' ),
- self, SLOT( 'openURLRequest(const KURL &, const KParts::URLArgs & )' ) )
+ TQ_SIGNAL( 'openURLRequest( const KURL &, const KParts::URLArgs & )' ),
+ self, TQ_SLOT( 'openURLRequest(const KURL &, const KParts::URLArgs & )' ) )
setCentralWidget(vbox)
end
diff --git a/korundum/rubylib/tutorials/p7/p7.rb b/korundum/rubylib/tutorials/p7/p7.rb
index d567c22a..df657186 100644
--- a/korundum/rubylib/tutorials/p7/p7.rb
+++ b/korundum/rubylib/tutorials/p7/p7.rb
@@ -20,8 +20,8 @@ class Browser < KDE::MainWindow
filemenu = TQt::PopupMenu.new
filemenu.insertItem( i18n( "&Set default page" ),
- self, SLOT( 'fileSetDefaultPage()' ) )
- filemenu.insertItem(i18n( "&Quit" ), $kapp, SLOT( 'quit()' ))
+ self, TQ_SLOT( 'fileSetDefaultPage()' ) )
+ filemenu.insertItem(i18n( "&Quit" ), $kapp, TQ_SLOT( 'quit()' ))
about =
i18n("p7 1.0\n\n" +
"(C) 1999-2002 Antonio Larrosa Jimenez\n" +
@@ -42,13 +42,13 @@ class Browser < KDE::MainWindow
icons = KDE::IconLoader.new()
toolbar.insertButton(icons.loadIcon("reload", KDE::Icon::Toolbar), TOOLBAR_ID_ADDBOOKMARK,
- SIGNAL('clicked(int)'),self,SLOT('bookLocation()'),true,
+ TQ_SIGNAL('clicked(int)'),self,TQ_SLOT('bookLocation()'),true,
i18n("Add to Bookmarks"))
toolbar.insertButton(icons.loadIcon("back", KDE::Icon::Toolbar), TOOLBAR_ID_BACK,
- SIGNAL('clicked(int)'),self,SLOT('gotoPreviousPage()'),
+ TQ_SIGNAL('clicked(int)'),self,TQ_SLOT('gotoPreviousPage()'),
false, i18n("Back to previous page"))
toolbar.insertButton(icons.loadIcon("system-log-out", KDE::Icon::Toolbar), TOOLBAR_ID_QUIT,
- SIGNAL('clicked(int)'),$kapp,SLOT('quit()'),true,
+ TQ_SIGNAL('clicked(int)'),$kapp,TQ_SLOT('quit()'),true,
i18n("Quit the application"))
addToolBar(toolbar)
@@ -60,8 +60,8 @@ class Browser < KDE::MainWindow
config.setGroup("Settings")
@location.text = config.readEntry( "defaultPage", "http://localhost")
- connect( @location , SIGNAL( 'returnPressed()' ),
- self, SLOT( 'changeLocation()' ) )
+ connect( @location , TQ_SIGNAL( 'returnPressed()' ),
+ self, TQ_SLOT( 'changeLocation()' ) )
split = TQt::Splitter.new( vbox )
split.setOpaqueResize()
@@ -70,8 +70,8 @@ class Browser < KDE::MainWindow
@browser.openURL( KDE::URL.new(@location.text()) )
connect( @browser.browserExtension(),
- SIGNAL( 'openURLRequest( const KURL&, const KParts::URLArgs& )' ),
- self, SLOT( 'openURLRequest(const KURL&, const KParts::URLArgs& )' ) )
+ TQ_SIGNAL( 'openURLRequest( const KURL&, const KParts::URLArgs& )' ),
+ self, TQ_SLOT( 'openURLRequest(const KURL&, const KParts::URLArgs& )' ) )
setCentralWidget(vbox)
end
diff --git a/korundum/rubylib/tutorials/p8/p8.rb b/korundum/rubylib/tutorials/p8/p8.rb
index 1839e697..1f39f0e0 100644
--- a/korundum/rubylib/tutorials/p8/p8.rb
+++ b/korundum/rubylib/tutorials/p8/p8.rb
@@ -8,8 +8,8 @@ class BookMarkList < KDE::ListView
def initialize()
super(nil, "Bookmarks")
addColumn( i18n("My Bookmarks") );
- connect( self, SIGNAL('clicked(TQListViewItem *)'),
- self, SLOT('setURLInBrowser(TQListViewItem *)'))
+ connect( self, TQ_SIGNAL('clicked(TQListViewItem *)'),
+ self, TQ_SLOT('setURLInBrowser(TQListViewItem *)'))
end
def add( s )
diff --git a/korundum/rubylib/tutorials/p9/p9.rb b/korundum/rubylib/tutorials/p9/p9.rb
index e395e19c..0f54394c 100644
--- a/korundum/rubylib/tutorials/p9/p9.rb
+++ b/korundum/rubylib/tutorials/p9/p9.rb
@@ -13,16 +13,16 @@ class Browser < KDE::MainWindow
super(nil, name)
@history = []
- KDE::StdAction.quit(self, SLOT('close()'), actionCollection())
+ KDE::StdAction.quit(self, TQ_SLOT('close()'), actionCollection())
KDE::Action.new(i18n("&Set default page"), "gohome", KDE::Shortcut.new(0), self,
- SLOT('fileSetDefaultPage()'), actionCollection(), "set_default_page")
+ TQ_SLOT('fileSetDefaultPage()'), actionCollection(), "set_default_page")
KDE::Action.new(i18n("Add to Bookmarks"), "reload", KDE::Shortcut.new(0), self,
- SLOT('bookLocation()'), actionCollection(), "add_to_bookmarks")
+ TQ_SLOT('bookLocation()'), actionCollection(), "add_to_bookmarks")
KDE::Action.new(i18n("Back to previous page"), "back", KDE::Shortcut.new(0), self,
- SLOT('gotoPreviousPage()'), actionCollection(), "back")
+ TQ_SLOT('gotoPreviousPage()'), actionCollection(), "back")
actionCollection().action("back").setEnabled(false)
@@ -36,15 +36,15 @@ class Browser < KDE::MainWindow
config.setGroup("Settings")
@location.text = config.readEntry( "defaultPage", "http://localhost")
- connect( @location , SIGNAL( 'returnPressed()' ),
- self, SLOT( 'changeLocation()' ) )
+ connect( @location , TQ_SIGNAL( 'returnPressed()' ),
+ self, TQ_SLOT( 'changeLocation()' ) )
@browser = KDE::HTMLPart.new( vbox )
@browser.openURL( KDE::URL.new(@location.text()) )
connect( @browser.browserExtension(),
- SIGNAL( 'openURLRequest( const KURL&, const KParts::URLArgs& )' ),
- self, SLOT( 'openURLRequest(const KURL&, const KParts::URLArgs& )' ) )
+ TQ_SIGNAL( 'openURLRequest( const KURL&, const KParts::URLArgs& )' ),
+ self, TQ_SLOT( 'openURLRequest(const KURL&, const KParts::URLArgs& )' ) )
setCentralWidget(vbox)
end
diff --git a/qtjava/designer/juic/java/definitions.xsl b/qtjava/designer/juic/java/definitions.xsl
index f04fbd62..94653074 100644
--- a/qtjava/designer/juic/java/definitions.xsl
+++ b/qtjava/designer/juic/java/definitions.xsl
@@ -631,9 +631,9 @@