summaryrefslogtreecommitdiffstats
path: root/languages/ruby/app_templates/kxt
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-01-14 14:24:33 +0900
committerMichele Calgaro <[email protected]>2024-01-14 14:24:33 +0900
commit35fbd60457d1e51e6a0df5d181d1a0f00ad75a2c (patch)
treebb3c7d39dd8592f3676cbd663a3cc42c7b288b41 /languages/ruby/app_templates/kxt
parent59f10590f7686267df6e294111a2ff5661089026 (diff)
downloadtdevelop-35fbd60457d1e51e6a0df5d181d1a0f00ad75a2c.tar.gz
tdevelop-35fbd60457d1e51e6a0df5d181d1a0f00ad75a2c.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'languages/ruby/app_templates/kxt')
-rw-r--r--languages/ruby/app_templates/kxt/app.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/languages/ruby/app_templates/kxt/app.rb b/languages/ruby/app_templates/kxt/app.rb
index 59a7c266..f7a18399 100644
--- a/languages/ruby/app_templates/kxt/app.rb
+++ b/languages/ruby/app_templates/kxt/app.rb
@@ -40,23 +40,23 @@ class %{APPNAMESC} < KDE::MainWindow
setupGUI();
# allow the view to change the statusbar and caption
- connect(@view, SIGNAL('signalChangeStatusbar(const TQString&)'),
- self, SLOT('changeStatusbar(const TQString&)'))
- connect(@view, SIGNAL('signalChangeCaption(const TQString&)'),
- self, SLOT('changeCaption(const TQString&)'))
+ connect(@view, TQ_SIGNAL('signalChangeStatusbar(const TQString&)'),
+ self, TQ_SLOT('changeStatusbar(const TQString&)'))
+ connect(@view, TQ_SIGNAL('signalChangeCaption(const TQString&)'),
+ self, TQ_SLOT('changeCaption(const TQString&)'))
end
def setupActions()
- KDE::StdAction.openNew(self, SLOT('fileNew()'), actionCollection())
- KDE::StdAction.quit($kapp, SLOT('quit()'), actionCollection())
+ KDE::StdAction.openNew(self, TQ_SLOT('fileNew()'), actionCollection())
+ KDE::StdAction.quit($kapp, TQ_SLOT('quit()'), actionCollection())
- KDE::StdAction.preferences(self, SLOT('optionsPreferences()'), actionCollection())
+ KDE::StdAction.preferences(self, TQ_SLOT('optionsPreferences()'), actionCollection())
# this doesn't do anything useful. it's just here to illustrate
# how to insert a custom menu and menu item
custom = KDE::Action.new(i18n("Swi&tch Colors"), KDE::Shortcut.new(),
- @view, SLOT('switchColors()'),
+ @view, TQ_SLOT('switchColors()'),
actionCollection(), "switch_action")
end
@@ -76,7 +76,7 @@ class %{APPNAMESC} < KDE::MainWindow
# to the names of the variables in the .kcfg file
dialog = KDE::ConfigDialog.new(self, "settings", Settings.instance, KDE::DialogBase::Swallow)
dialog.addPage(Prefs.new(), i18n("General"), "package_settings")
- connect(dialog, SIGNAL('settingsChanged()'), @view, SLOT('settingsChanged()'))
+ connect(dialog, TQ_SIGNAL('settingsChanged()'), @view, TQ_SLOT('settingsChanged()'))
dialog.show()
end