diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
commit | 9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch) | |
tree | c81c34dae2b3b1ea73801bf18a960265dc4207f7 /qtruby/rubylib/examples/qt-examples/chart/chartform_canvas.rb | |
parent | 1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff) | |
download | tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip |
Initial TQt conversion
Diffstat (limited to 'qtruby/rubylib/examples/qt-examples/chart/chartform_canvas.rb')
-rw-r--r-- | qtruby/rubylib/examples/qt-examples/chart/chartform_canvas.rb | 16 |
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 ) |