diff options
Diffstat (limited to 'doc/html/tutorial2-06.html')
-rw-r--r-- | doc/html/tutorial2-06.html | 10 |
1 files changed, 5 insertions, 5 deletions
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. <p> We retrieve the width and height of the canvas and calculate the proportional height (<tt>proheight</tt>). We set the initial <tt>y</tt> position to 0. -<p> <pre> <a href="ntqpen.html">TQPen</a> pen; - <a name="x2575"></a> pen.<a href="ntqpen.html#setStyle">setStyle</a>( NoPen ); +<p> <pre> <a href="tqpen.html">TQPen</a> pen; + <a name="x2575"></a> pen.<a href="tqpen.html#setStyle">setStyle</a>( NoPen ); </pre> <p> We create a pen that we will use to draw each bar (rectangle); we set it to <tt>NoPen</tt> so that no outlines are drawn. @@ -253,7 +253,7 @@ with this text item, and provided a getter and setter for this value. private: <a href="tqcanvasitem.html">TQCanvasItem</a> *m_movingItem; - <a href="ntqpoint.html">TQPoint</a> m_pos; + <a href="tqpoint.html">TQPoint</a> m_pos; ElementVector *m_elements; }; </pre> @@ -316,8 +316,8 @@ and record its position. Otherwise we set there to be no moving item. <p> <pre> <a name="x2585"></a>void CanvasView::<a href="ntqscrollview.html#contentsMouseMoveEvent">contentsMouseMoveEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a> *e ) { if ( m_movingItem ) { - <a href="ntqpoint.html">TQPoint</a> offset = e-><a href="qmouseevent.html#pos">pos</a>() - m_pos; - <a name="x2582"></a><a name="x2581"></a> m_movingItem->moveBy( offset.<a href="ntqpoint.html#x">x</a>(), offset.<a href="ntqpoint.html#y">y</a>() ); + <a href="tqpoint.html">TQPoint</a> offset = e-><a href="qmouseevent.html#pos">pos</a>() - m_pos; + <a name="x2582"></a><a name="x2581"></a> m_movingItem->moveBy( offset.<a href="tqpoint.html#x">x</a>(), offset.<a href="tqpoint.html#y">y</a>() ); m_pos = e-><a href="qmouseevent.html#pos">pos</a>(); ChartForm *form = (ChartForm*)<a href="tqobject.html#parent">parent</a>(); form->setChanged( TRUE ); |