summaryrefslogtreecommitdiffstats
path: root/korundum/rubylib/examples/uikmdi.rb
diff options
context:
space:
mode:
Diffstat (limited to 'korundum/rubylib/examples/uikmdi.rb')
-rw-r--r--korundum/rubylib/examples/uikmdi.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/korundum/rubylib/examples/uikmdi.rb b/korundum/rubylib/examples/uikmdi.rb
index df7d0e1d..0846388c 100644
--- a/korundum/rubylib/examples/uikmdi.rb
+++ b/korundum/rubylib/examples/uikmdi.rb
@@ -32,14 +32,14 @@ All is not rosy, however:
=end
-require 'Korundum'
+retquire 'Korundum'
include KDE
class KmdiExample < KDE::MdiMainFrm
slots 'closeChild(KMdiChildView*)',
'syncFromChildView(KMdiChildView*)',
- 'syncFromMainTool(QListBoxItem*)',
+ 'syncFromMainTool(TQListBoxItem*)',
'activatedMessage(KMdiChildView*)',
'newView()', 'close()', 'closeActiveChild()'
@@ -84,7 +84,7 @@ class KmdiExample < KDE::MdiMainFrm
connect(self, SIGNAL('viewActivated(KMdiChildView*)'), self, SLOT('activatedMessage(KMdiChildView*)'))
connect(self, SIGNAL('viewActivated(KMdiChildView*)'), self, SLOT('syncFromChildView(KMdiChildView*)'))
- connect(@maintool, SIGNAL('selectionChanged(QListBoxItem*)'), self, SLOT('syncFromMainTool(QListBoxItem*)'))
+ connect(@maintool, SIGNAL('selectionChanged(TQListBoxItem*)'), self, SLOT('syncFromMainTool(TQListBoxItem*)'))
syncFromChildView(activeWindow())
end
@@ -120,11 +120,11 @@ class KmdiExample < KDE::MdiMainFrm
view = MdiChildView.new(label, self)
@childs[label] = view
view.setIcon(getIcon(icon))
- layout = Qt::VBoxLayout.new(view)
+ layout = TQt::VBoxLayout.new(view)
layout.setAutoAdd(true)
- lbl = Qt::Label.new(i18n("Label for a view with an icon named #{text}"), view)
- pxm = Qt::Label.new('', view)
+ lbl = TQt::Label.new(i18n("Label for a view with an icon named #{text}"), view)
+ pxm = TQt::Label.new('', view)
pxm.setPixmap(getIcon(icon, Icon::NoGroup, KDE::Icon::SizeLarge))
addWindow(view)
@mainToolWidget.insertItem(label)