summaryrefslogtreecommitdiffstats
path: root/korundum/rubylib/templates/annotated/menuapp2.rb
diff options
context:
space:
mode:
Diffstat (limited to 'korundum/rubylib/templates/annotated/menuapp2.rb')
-rw-r--r--korundum/rubylib/templates/annotated/menuapp2.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/korundum/rubylib/templates/annotated/menuapp2.rb b/korundum/rubylib/templates/annotated/menuapp2.rb
index d3eab60d..2d4df454 100644
--- a/korundum/rubylib/templates/annotated/menuapp2.rb
+++ b/korundum/rubylib/templates/annotated/menuapp2.rb
@@ -36,7 +36,7 @@ copyright holder.
=end
-require 'Korundum'
+retquire 'Korundum'
@@ -65,7 +65,7 @@ class MainWin < KDE::MainWindow
# Create the status bar
initStatusBar()
- # Usings actions, only a single line is required
+ # Usings actions, only a single line is retquired
# to enable/disable both the menu item and corresponding
# toolbar button from anywhere in the program
@saveAction.setEnabled(false)
@@ -111,8 +111,8 @@ class MainWin < KDE::MainWindow
# or you can use KDE::Action.setIcon to set/change the icon. You
# can also add a tooltip with KDE::Action.setToolTip
- # This KAction constructor requires a string, an accelerator (0
- # in this case), a slot, and a QObject (None in this case)
+ # This KAction constructor retquires a string, an accelerator (0
+ # in this case), a slot, and a TQObject (None in this case)
@specialAction = KDE::Action.new(i18n("Special"), KDE::Shortcut.new(0), self, SLOT('slotSpecial()'), actionCollection(), "specialActionName")
end
@@ -120,7 +120,7 @@ class MainWin < KDE::MainWindow
def initMenus()
# plug the actions into the menus
- fileMenu = Qt::PopupMenu.new(self)
+ fileMenu = TQt::PopupMenu.new(self)
@newAction.plug(fileMenu)
@openAction.plug(fileMenu)
fileMenu.insertSeparator()
@@ -132,7 +132,7 @@ class MainWin < KDE::MainWindow
@quitAction.plug(fileMenu)
menuBar().insertItem(i18n("&File"), fileMenu)
- editMenu = Qt::PopupMenu.new(self)
+ editMenu = TQt::PopupMenu.new(self)
@undoAction.plug(editMenu)
@redoAction.plug(editMenu)
editMenu.insertSeparator()