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-14 20:32:49 +0900 |
commit | 1eb017313b2ebc441dfc81e73a5d6573d03ea08d (patch) | |
tree | 8d37ac85ad8a529697fc81479852a039de534b8e /korundum/rubylib/tutorials/p7/p7.rb | |
parent | 673e65a4a15e713643f4bb804f7af6dfdaa0d6d6 (diff) | |
download | tdebindings-1eb017313b2ebc441dfc81e73a5d6573d03ea08d.tar.gz tdebindings-1eb017313b2ebc441dfc81e73a5d6573d03ea08d.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit faf33629bb6562a6f43f930afafe4b22e9cdb60b)
Diffstat (limited to 'korundum/rubylib/tutorials/p7/p7.rb')
-rw-r--r-- | korundum/rubylib/tutorials/p7/p7.rb | 18 |
1 files changed, 9 insertions, 9 deletions
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
|