summaryrefslogtreecommitdiffstats
path: root/doc/html/tutorial2-06.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/tutorial2-06.html')
-rw-r--r--doc/html/tutorial2-06.html22
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>()-&gt;resize( e-&gt;<a href="qresizeevent.html#size">size</a>().width(), e-&gt;<a href="qresizeevent.html#size">size</a>().height() );
+ <a name="x2583"></a> <a href="tqcanvasview.html#canvas">canvas</a>()-&gt;resize( e-&gt;<a href="tqresizeevent.html#size">size</a>().width(), e-&gt;<a href="tqresizeevent.html#size">size</a>().height() );
((ChartForm*)<a href="tqobject.html#parent">parent</a>())-&gt;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>()-&gt;collisions( e-&gt;<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>()-&gt;collisions( e-&gt;<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)-&gt;rtti() == CanvasText::CANVAS_TEXT ) {
m_movingItem = *it;
- m_pos = e-&gt;<a href="qmouseevent.html#pos">pos</a>();
+ m_pos = e-&gt;<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-&gt;<a href="qmouseevent.html#pos">pos</a>() - m_pos;
+ <a href="tqpoint.html">TQPoint</a> offset = e-&gt;<a href="tqmouseevent.html#pos">pos</a>() - m_pos;
<a name="x2582"></a><a name="x2581"></a> m_movingItem-&gt;moveBy( offset.<a href="tqpoint.html#x">x</a>(), offset.<a href="tqpoint.html#y">y</a>() );
- m_pos = e-&gt;<a href="qmouseevent.html#pos">pos</a>();
+ m_pos = e-&gt;<a href="tqmouseevent.html#pos">pos</a>();
ChartForm *form = (ChartForm*)<a href="tqobject.html#parent">parent</a>();
form-&gt;setChanged( TRUE );
int chartType = form-&gt;chartType();