summaryrefslogtreecommitdiffstats
path: root/qtruby/rubylib/examples/base
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 /qtruby/rubylib/examples/base
parent1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff)
downloadtdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz
tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip
Initial TQt conversion
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)