diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-09-04 11:53:23 +0900 | 
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-09-04 13:56:43 +0900 | 
| commit | 0582c90a9ed4b965629267713f51c0da7c38b39d (patch) | |
| tree | cae95e850081d0a7f2be6cef5837f43a28d53d2c /doc/html/tutorial2-06.html | |
| parent | 39f8a475b4ec5c87a11a7e9300a30ef1c5b4a7e1 (diff) | |
| download | tqt-0582c90a.tar.gz tqt-0582c90a.zip | |
Rename remaining ntq[m-r]* related files to equivalent tq* (except ntqmodules.h)
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/tutorial2-06.html')
| -rw-r--r-- | doc/html/tutorial2-06.html | 22 | 
1 files changed, 11 insertions, 11 deletions
| diff --git a/doc/html/tutorial2-06.html b/doc/html/tutorial2-06.html index b3e21f675..3345bd76c 100644 --- a/doc/html/tutorial2-06.html +++ b/doc/html/tutorial2-06.html @@ -246,9 +246,9 @@ with this text item, and provided a getter and setter for this value.                m_elements( elements ) {}      protected: -        void viewportResizeEvent( <a href="qresizeevent.html">TQResizeEvent</a> *e ); -        void contentsMousePressEvent( <a href="qmouseevent.html">TQMouseEvent</a> *e ); -        void contentsMouseMoveEvent( <a href="qmouseevent.html">TQMouseEvent</a> *e ); +        void viewportResizeEvent( <a href="tqresizeevent.html">TQResizeEvent</a> *e ); +        void contentsMousePressEvent( <a href="tqmouseevent.html">TQMouseEvent</a> *e ); +        void contentsMouseMoveEvent( <a href="tqmouseevent.html">TQMouseEvent</a> *e );          void contentsContextMenuEvent( <a href="tqcontextmenuevent.html">TQContextMenuEvent</a> *e );      private: @@ -282,9 +282,9 @@ to the right type and then exec()ute the options menu at the cursor  position.   <p> <h3> Handling Resizing  </h3> -<a name="3-2"></a><p> <pre>    <a name="x2587"></a>void CanvasView::<a href="tqscrollview.html#viewportResizeEvent">viewportResizeEvent</a>( <a href="qresizeevent.html">TQResizeEvent</a> *e ) +<a name="3-2"></a><p> <pre>    <a name="x2587"></a>void CanvasView::<a href="tqscrollview.html#viewportResizeEvent">viewportResizeEvent</a>( <a href="tqresizeevent.html">TQResizeEvent</a> *e )      { -    <a name="x2583"></a>    <a href="tqcanvasview.html#canvas">canvas</a>()->resize( e-><a href="qresizeevent.html#size">size</a>().width(), e-><a href="qresizeevent.html#size">size</a>().height() ); +    <a name="x2583"></a>    <a href="tqcanvasview.html#canvas">canvas</a>()->resize( e-><a href="tqresizeevent.html#size">size</a>().width(), e-><a href="tqresizeevent.html#size">size</a>().height() );          ((ChartForm*)<a href="tqobject.html#parent">parent</a>())->drawElements();      }  </pre> @@ -297,13 +297,13 @@ drawn correctly.  </h3>  <a name="3-3"></a><p> When the user wants to drag a label into position they click it, then  drag and release at the new position. -<p> <pre>    <a name="x2586"></a>void CanvasView::<a href="tqscrollview.html#contentsMousePressEvent">contentsMousePressEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a> *e ) +<p> <pre>    <a name="x2586"></a>void CanvasView::<a href="tqscrollview.html#contentsMousePressEvent">contentsMousePressEvent</a>( <a href="tqmouseevent.html">TQMouseEvent</a> *e )      { -    <a name="x2580"></a>    <a href="tqcanvasitemlist.html">TQCanvasItemList</a> list = <a href="tqcanvasview.html#canvas">canvas</a>()->collisions( e-><a href="qmouseevent.html#pos">pos</a>() ); +    <a name="x2580"></a>    <a href="tqcanvasitemlist.html">TQCanvasItemList</a> list = <a href="tqcanvasview.html#canvas">canvas</a>()->collisions( e-><a href="tqmouseevent.html#pos">pos</a>() );      <a name="x2589"></a><a name="x2588"></a>    for ( TQCanvasItemList::iterator it = list.<a href="tqvaluelist.html#begin">begin</a>(); it != list.<a href="tqvaluelist.html#end">end</a>(); ++it )              if ( (*it)->rtti() == CanvasText::CANVAS_TEXT ) {                  m_movingItem = *it; -                m_pos = e-><a href="qmouseevent.html#pos">pos</a>(); +                m_pos = e-><a href="tqmouseevent.html#pos">pos</a>();                  return;              }          m_movingItem = 0; @@ -313,12 +313,12 @@ drag and release at the new position.  the mouse click "collided" with (if any). We then iterate over this  list and if we find a <tt>CanvasText</tt> item we set it as the moving item  and record its position. Otherwise we set there to be no moving item. -<p> <pre>    <a name="x2585"></a>void CanvasView::<a href="tqscrollview.html#contentsMouseMoveEvent">contentsMouseMoveEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a> *e ) +<p> <pre>    <a name="x2585"></a>void CanvasView::<a href="tqscrollview.html#contentsMouseMoveEvent">contentsMouseMoveEvent</a>( <a href="tqmouseevent.html">TQMouseEvent</a> *e )      {          if ( m_movingItem ) { -            <a href="tqpoint.html">TQPoint</a> offset = e-><a href="qmouseevent.html#pos">pos</a>() - m_pos; +            <a href="tqpoint.html">TQPoint</a> offset = e-><a href="tqmouseevent.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>(); +            m_pos = e-><a href="tqmouseevent.html#pos">pos</a>();              ChartForm *form = (ChartForm*)<a href="tqobject.html#parent">parent</a>();              form->setChanged( TRUE );              int chartType = form->chartType(); | 
