summaryrefslogtreecommitdiffstats
path: root/qtruby/rubylib/examples/base
diff options
context:
space:
mode:
Diffstat (limited to 'qtruby/rubylib/examples/base')
-rw-r--r--qtruby/rubylib/examples/base/kicons.rb8
-rw-r--r--qtruby/rubylib/examples/base/rui.rb2
2 files changed, 5 insertions, 5 deletions
diff --git a/qtruby/rubylib/examples/base/kicons.rb b/qtruby/rubylib/examples/base/kicons.rb
index 0d0a2c01..1922d70e 100644
--- a/qtruby/rubylib/examples/base/kicons.rb
+++ b/qtruby/rubylib/examples/base/kicons.rb
@@ -23,13 +23,13 @@ class KIconCollection
end
def get_icon_set(icon_type)
path = get_icon_path(icon_type)
- pixmap = Qt::Pixmap.new(path)
- icon_set = Qt::IconSet.new
- icon_set.setPixmap(pixmap, Qt::IconSet.Small)
+ pixmap = TQt::Pixmap.new(path)
+ icon_set = TQt::IconSet.new
+ icon_set.setPixmap(pixmap, TQt::IconSet.Small)
icon_set
end
def make_qt_action(parent, text_with_accel, icon_type)
- act = Qt::Action.new(parent)
+ act = TQt::Action.new(parent)
act.setIconSet(get_icon_set(icon_type))
act.setMenuText(text_with_accel)
act
diff --git a/qtruby/rubylib/examples/base/rui.rb b/qtruby/rubylib/examples/base/rui.rb
index ad14bc11..046bb637 100644
--- a/qtruby/rubylib/examples/base/rui.rb
+++ b/qtruby/rubylib/examples/base/rui.rb
@@ -1,4 +1,4 @@
-require '../base/kicons.rb'
+retquire '../base/kicons.rb'
RAction = Struct.new(:text_with_accel, :icon_type, :rec, :slot, :included_in, :action)
RSeperator = Struct.new(:included_in, :id)