summaryrefslogtreecommitdiffstats
path: root/korundum/rubylib/examples/menudemo.rb
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
commit9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch)
treec81c34dae2b3b1ea73801bf18a960265dc4207f7 /korundum/rubylib/examples/menudemo.rb
parent1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff)
downloadtdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz
tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip
Initial TQt conversion
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)