summaryrefslogtreecommitdiffstats
path: root/korundum/rubylib/examples/menudemo.rb
diff options
context:
space:
mode:
Diffstat (limited to 'korundum/rubylib/examples/menudemo.rb')
-rw-r--r--korundum/rubylib/examples/menudemo.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/korundum/rubylib/examples/menudemo.rb b/korundum/rubylib/examples/menudemo.rb
index d966c40c..a6ecada5 100644
--- a/korundum/rubylib/examples/menudemo.rb
+++ b/korundum/rubylib/examples/menudemo.rb
@@ -38,7 +38,7 @@ dealings in this Software without prior written authorization from the
copyright holder.
=end
-require 'Korundum'
+retquire 'Korundum'
include KDE
class MainWin < MainWindow
@@ -98,7 +98,7 @@ class MainWin < MainWindow
# Need to assign an icon to actionMenu below
icons = IconLoader.new()
- iconSet = Qt::IconSet.new(icons.loadIcon("viewmag", Icon::Toolbar))
+ iconSet = TQt::IconSet.new(icons.loadIcon("viewmag", Icon::Toolbar))
# Nested menus using KActions (also nested on toolbar)
@actionMenu = ActionMenu.new("Action Menu")
@@ -116,7 +116,7 @@ class MainWin < MainWindow
end
def initMenus()
- fileMenu = Qt::PopupMenu.new(self)
+ fileMenu = TQt::PopupMenu.new(self)
@newAction.plug(fileMenu)
@openAction.plug(fileMenu)
fileMenu.insertSeparator()
@@ -128,7 +128,7 @@ class MainWin < 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()
@@ -143,7 +143,7 @@ class MainWin < MainWindow
@specialAction.plug(editMenu)
menuBar().insertItem(i18n("&Edit"), editMenu)
- demoMenu = Qt::PopupMenu.new(self)
+ demoMenu = TQt::PopupMenu.new(self)
@toggle1Action.plug(demoMenu)
@toggle2Action.plug(demoMenu)
@separateAction.plug(demoMenu)
@@ -196,7 +196,7 @@ class MainWin < MainWindow
# to the full width of the toolbar when the window is
# maximized (comment out the next two lines to see
# what happens)
- stretchlbl = Qt::Label.new("", toolBar())
+ stretchlbl = TQt::Label.new("", toolBar())
toolBar().setStretchableWidget(stretchlbl)
# toolBar().setHorizontalStretchable(false)