From 1e9fa8e06de5da7fcc268e9cccb2d6b21c5f53a3 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 20 Jul 2024 20:15:52 +0900 Subject: Rename graphics class nt* related files to equivalent tq* (part 2) Signed-off-by: Michele Calgaro --- doc/html/tutorial2-06.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'doc/html/tutorial2-06.html') diff --git a/doc/html/tutorial2-06.html b/doc/html/tutorial2-06.html index e8bbcdaba..3f2c03868 100644 --- a/doc/html/tutorial2-06.html +++ b/doc/html/tutorial2-06.html @@ -123,8 +123,8 @@ required) and a count of the number of values.

We retrieve the width and height of the canvas and calculate the proportional height (proheight). We set the initial y position to 0. -

        TQPen pen;
-        pen.setStyle( NoPen );
+

        TQPen pen;
+        pen.setStyle( NoPen );
 

We create a pen that we will use to draw each bar (rectangle); we set it to NoPen so that no outlines are drawn. @@ -253,7 +253,7 @@ with this text item, and provided a getter and setter for this value. private: TQCanvasItem *m_movingItem; - TQPoint m_pos; + TQPoint m_pos; ElementVector *m_elements; };

@@ -316,8 +316,8 @@ and record its position. Otherwise we set there to be no moving item.

    void CanvasView::contentsMouseMoveEvent( TQMouseEvent *e )
     {
         if ( m_movingItem ) {
-            TQPoint offset = e->pos() - m_pos;
-            m_movingItem->moveBy( offset.x(), offset.y() );
+            TQPoint offset = e->pos() - m_pos;
+            m_movingItem->moveBy( offset.x(), offset.y() );
             m_pos = e->pos();
             ChartForm *form = (ChartForm*)parent();
             form->setChanged( TRUE );
-- 
cgit v1.2.3