summaryrefslogtreecommitdiffstats
path: root/qtruby/rubylib/examples/qt-examples/chart/chartform_canvas.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qtruby/rubylib/examples/qt-examples/chart/chartform_canvas.rb')
-rw-r--r--qtruby/rubylib/examples/qt-examples/chart/chartform_canvas.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/qtruby/rubylib/examples/qt-examples/chart/chartform_canvas.rb b/qtruby/rubylib/examples/qt-examples/chart/chartform_canvas.rb
index 86c66f76..e97d542f 100644
--- a/qtruby/rubylib/examples/qt-examples/chart/chartform_canvas.rb
+++ b/qtruby/rubylib/examples/qt-examples/chart/chartform_canvas.rb
@@ -64,11 +64,11 @@ class ChartForm
for i in 0...MAX_ELEMENTS
if @elements[i].isValid()
extent = scales[i]
- arc = Qt::CanvasEllipse.new( size, size, angle, extent, @canvas )
+ arc = TQt::CanvasEllipse.new( size, size, angle, extent, @canvas )
arc.setX( x )
arc.setY( y )
arc.setZ( 0 )
- arc.setBrush( Qt::Brush.new( @elements[i].valueColor(),
+ arc.setBrush( TQt::Brush.new( @elements[i].valueColor(),
@elements[i].valuePattern() ) )
arc.show()
angle += extent
@@ -109,15 +109,15 @@ class ChartForm
height = @canvas.height().to_f
prowidth = width / count
x = 0
- pen = Qt::Pen.new
+ pen = TQt::Pen.new
pen.style = NoPen
for i in 0...MAX_ELEMENTS
if @elements[i].isValid()
extent = scales[i]
y = height - extent
- rect = Qt::CanvasRectangle.new(x, y, prowidth, extent, @canvas )
- rect.setBrush( Qt::Brush.new( @elements[i].valueColor(),
+ rect = TQt::CanvasRectangle.new(x, y, prowidth, extent, @canvas )
+ rect.setBrush( TQt::Brush.new( @elements[i].valueColor(),
@elements[i].valuePattern() ) )
rect.setPen( pen )
rect.setZ( 0 )
@@ -151,14 +151,14 @@ class ChartForm
height = @canvas.height().to_f
proheight = height / count
y = 0
- pen = Qt::Pen.new
+ pen = TQt::Pen.new
pen.style = NoPen
for i in 0...MAX_ELEMENTS
if @elements[i].isValid()
extent = scales[i]
- rect = Qt::CanvasRectangle.new(0, y, extent, proheight, @canvas )
- rect.setBrush( Qt::Brush.new( @elements[i].valueColor(),
+ rect = TQt::CanvasRectangle.new(0, y, extent, proheight, @canvas )
+ rect.setBrush( TQt::Brush.new( @elements[i].valueColor(),
@elements[i].valuePattern() ) )
rect.setPen( pen )
rect.setZ( 0 )