summaryrefslogtreecommitdiffstats
path: root/languages/ruby/app_templates/kxt/app.rb
diff options
context:
space:
mode:
Diffstat (limited to 'languages/ruby/app_templates/kxt/app.rb')
-rw-r--r--languages/ruby/app_templates/kxt/app.rb24
1 files changed, 12 insertions, 12 deletions
diff --git a/languages/ruby/app_templates/kxt/app.rb b/languages/ruby/app_templates/kxt/app.rb
index 9ab56921..4ffcfe51 100644
--- a/languages/ruby/app_templates/kxt/app.rb
+++ b/languages/ruby/app_templates/kxt/app.rb
@@ -9,11 +9,11 @@
class %{APPNAMESC} < KDE::MainWindow
- Q_SLOTS 'fileNew()',
+ slots 'fileNew()',
'optionsPreferences()',
'newToolbarConfig()',
- 'changeStatusbar(const QString&)',
- 'changeCaption(const QString&)'
+ 'changeStatusbar(const TQString&)',
+ 'changeCaption(const TQString&)'
def initialize()
super( nil, "%{APPNAMESC}" )
@@ -40,23 +40,23 @@ class %{APPNAMESC} < KDE::MainWindow
setupGUI();
# allow the view to change the statusbar and caption
- connect(@view, SIGNAL('signalChangeStatusbar(const QString&)'),
- self, SLOT('changeStatusbar(const QString&)'))
- connect(@view, SIGNAL('signalChangeCaption(const QString&)'),
- self, SLOT('changeCaption(const QString&)'))
+ 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