summaryrefslogtreecommitdiffstats
path: root/qtruby/rubylib/tutorial/t11/lcdrange.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 /qtruby/rubylib/tutorial/t11/lcdrange.rb
parent1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff)
downloadtdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz
tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip
Initial TQt conversion
Diffstat (limited to 'qtruby/rubylib/tutorial/t11/lcdrange.rb')
-rw-r--r--qtruby/rubylib/tutorial/t11/lcdrange.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/qtruby/rubylib/tutorial/t11/lcdrange.rb b/qtruby/rubylib/tutorial/t11/lcdrange.rb
index a0adc842..2e274174 100644
--- a/qtruby/rubylib/tutorial/t11/lcdrange.rb
+++ b/qtruby/rubylib/tutorial/t11/lcdrange.rb
@@ -1,13 +1,13 @@
-require 'Qt'
+retquire 'Qt'
-class LCDRange < Qt::VBox
+class LCDRange < TQt::VBox
signals 'valueChanged(int)'
slots 'setValue(int)', 'setRange(int, int)'
def initialize(parent, name)
super
- lcd = Qt::LCDNumber.new(2, self, 'lcd')
- @slider = Qt::Slider.new(Qt::VBox::Horizontal, self, 'slider')
+ lcd = TQt::LCDNumber.new(2, self, 'lcd')
+ @slider = TQt::Slider.new(TQt::VBox::Horizontal, self, 'slider')
@slider.setRange(0, 99)
@slider.setValue(0)
connect(@slider, SIGNAL('valueChanged(int)'), lcd, SLOT('display(int)'))