From 68b81013e8668f50fc18b7e26a520ec93a7a1251 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 31 May 2024 11:32:43 +0900 Subject: Rename nt* canvas related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/tutorial2-05.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'doc/html/tutorial2-05.html') diff --git a/doc/html/tutorial2-05.html b/doc/html/tutorial2-05.html index df811b8c1..98f29edd7 100644 --- a/doc/html/tutorial2-05.html +++ b/doc/html/tutorial2-05.html @@ -98,7 +98,7 @@ conventional document-centric style. TQAction *optionsVerticalBarChartAction; TQString m_filename; TQStringList m_recentFiles; - TQCanvas *m_canvas; + TQCanvas *m_canvas; CanvasView *m_canvasView; bool m_changed; ElementVector m_elements; @@ -119,8 +119,8 @@ because we are also going to use this menu as the canvas view's context menu.

-
The TQCanvas class is used for drawing 2D vector graphics. The -TQCanvasView class is used to present a view of a canvas in an +The TQCanvas class is used for drawing 2D vector graphics. The +TQCanvasView class is used to present a view of a canvas in an application's GUI. All our drawing operations take place on the canvas; but events (e.g. mouse clicks) take place on the canvas view.
@@ -269,15 +269,15 @@ updateChartType() slot.

And now that we know the window size and position we can resize and move the chart form's window accordingly. -

        m_canvas = new TQCanvas( this );
-        m_canvas->resize( width(), height() );
+

        m_canvas = new TQCanvas( this );
+        m_canvas->resize( width(), height() );
         m_canvasView = new CanvasView( m_canvas, &m_elements, this );
         setCentralWidget( m_canvasView );
         m_canvasView->show();
 
-

We create a new TQCanvas and set its size to that of the chart form +

We create a new TQCanvas and set its size to that of the chart form window's client area. We also create a CanvasView (our own subclass -of TQCanvasView) to display the TQCanvas. We make the canvas view the +of TQCanvasView) to display the TQCanvas. We make the canvas view the chart form's main widget and show it.

        if ( !filename.isEmpty() )
             load( filename );
-- 
cgit v1.2.1