From 1eb017313b2ebc441dfc81e73a5d6573d03ea08d Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 13 Jan 2024 11:29:06 +0900 Subject: Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines Signed-off-by: Michele Calgaro (cherry picked from commit faf33629bb6562a6f43f930afafe4b22e9cdb60b) --- korundum/rubylib/tutorials/p9/p9.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'korundum/rubylib/tutorials/p9') 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 -- cgit v1.2.3