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/tutorials/p9 | |
| 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/tutorials/p9')
| -rw-r--r-- | korundum/rubylib/tutorials/p9/p9.rb | 16 |
1 files changed, 8 insertions, 8 deletions
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
|
