diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
commit | 9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch) | |
tree | c81c34dae2b3b1ea73801bf18a960265dc4207f7 /korundum/rubylib/templates/annotated/menuapp2.rb | |
parent | 1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff) | |
download | tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip |
Initial TQt conversion
Diffstat (limited to 'korundum/rubylib/templates/annotated/menuapp2.rb')
-rw-r--r-- | korundum/rubylib/templates/annotated/menuapp2.rb | 12 |
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() |