diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-05-31 11:32:43 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-05-31 11:59:34 +0900 |
commit | 68b81013e8668f50fc18b7e26a520ec93a7a1251 (patch) | |
tree | d6d15d07cb34e5443a10b71f91adee1473906263 /doc/html/tutorial2-05.html | |
parent | 1702a6daff27f5d3e6fdac16962d1828df6ca270 (diff) | |
download | tqt3-68b81013e8668f50fc18b7e26a520ec93a7a1251.tar.gz tqt3-68b81013e8668f50fc18b7e26a520ec93a7a1251.zip |
Rename nt* canvas related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/tutorial2-05.html')
-rw-r--r-- | doc/html/tutorial2-05.html | 14 |
1 files changed, 7 insertions, 7 deletions
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. <a href="ntqaction.html">TQAction</a> *optionsVerticalBarChartAction; <a href="ntqstring.html">TQString</a> m_filename; <a href="ntqstringlist.html">TQStringList</a> m_recentFiles; - <a href="ntqcanvas.html">TQCanvas</a> *m_canvas; + <a href="tqcanvas.html">TQCanvas</a> *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. <p> <center><table cellpadding="4" cellspacing="2" border="0"> <tr bgcolor="#f0f0f0"> -<td valign="top">The <a href="ntqcanvas.html">TQCanvas</a> class is used for drawing 2D vector graphics. The -<a href="qcanvasview.html">TQCanvasView</a> class is used to present a view of a canvas in an +<td valign="top">The <a href="tqcanvas.html">TQCanvas</a> class is used for drawing 2D vector graphics. The +<a href="tqcanvasview.html">TQCanvasView</a> 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. </table></center> @@ -269,15 +269,15 @@ updateChartType() slot. </pre> <p> And now that we know the window size and position we can resize and move the chart form's window accordingly. -<p> <pre> m_canvas = new <a href="ntqcanvas.html">TQCanvas</a>( this ); - m_canvas-><a href="ntqcanvas.html#resize">resize</a>( <a href="ntqwidget.html#width">width</a>(), height() ); +<p> <pre> m_canvas = new <a href="tqcanvas.html">TQCanvas</a>( this ); + m_canvas-><a href="tqcanvas.html#resize">resize</a>( <a href="ntqwidget.html#width">width</a>(), height() ); m_canvasView = new CanvasView( m_canvas, &m_elements, this ); <a href="ntqmainwindow.html#setCentralWidget">setCentralWidget</a>( m_canvasView ); m_canvasView-><a href="ntqwidget.html#show">show</a>(); </pre> -<p> We create a new <a href="ntqcanvas.html">TQCanvas</a> and set its size to that of the chart form +<p> We create a new <a href="tqcanvas.html">TQCanvas</a> and set its size to that of the chart form window's client area. We also create a <tt>CanvasView</tt> (our own subclass -of <a href="qcanvasview.html">TQCanvasView</a>) to display the TQCanvas. We make the canvas view the +of <a href="tqcanvasview.html">TQCanvasView</a>) to display the TQCanvas. We make the canvas view the chart form's main widget and show it. <p> <pre> if ( !filename.<a href="ntqstring.html#isEmpty">isEmpty</a>() ) load( filename ); |