summaryrefslogtreecommitdiffstats
path: root/doc/html/drawlines-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/drawlines-example.html')
-rw-r--r--doc/html/drawlines-example.html20
1 files changed, 10 insertions, 10 deletions
diff --git a/doc/html/drawlines-example.html b/doc/html/drawlines-example.html
index 2b66bbb56..34c40d1d8 100644
--- a/doc/html/drawlines-example.html
+++ b/doc/html/drawlines-example.html
@@ -50,7 +50,7 @@ release the button, and watch the lines get drawn.
*****************************************************************************/
#include &lt;<a href="tqwidget-h.html">tqwidget.h</a>&gt;
-#include &lt;<a href="qpainter-h.html">ntqpainter.h</a>&gt;
+#include &lt;<a href="tqpainter-h.html">tqpainter.h</a>&gt;
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
#include &lt;stdlib.h&gt;
@@ -69,13 +69,13 @@ public:
ConnectWidget( <a href="tqwidget.html">TQWidget</a> *parent=0, const char *name=0 );
~ConnectWidget();
protected:
- void paintEvent( <a href="qpaintevent.html">TQPaintEvent</a> * );
+ void paintEvent( <a href="tqpaintevent.html">TQPaintEvent</a> * );
void mousePressEvent( <a href="qmouseevent.html">TQMouseEvent</a> *);
void mouseReleaseEvent( <a href="qmouseevent.html">TQMouseEvent</a> *);
void mouseMoveEvent( <a href="qmouseevent.html">TQMouseEvent</a> *);
private:
<a href="ntqpoint.html">TQPoint</a> *points; // point array
- <a href="ntqcolor.html">TQColor</a> *colors; // color array
+ <a href="tqcolor.html">TQColor</a> *colors; // color array
int count; // count = number of points
bool down; // TRUE if mouse down
};
@@ -92,7 +92,7 @@ private:
count = 0;
down = FALSE;
points = new <a href="ntqpoint.html">TQPoint</a>[MAXPOINTS];
- colors = new <a href="ntqcolor.html">TQColor</a>[MAXCOLORS];
+ colors = new <a href="tqcolor.html">TQColor</a>[MAXCOLORS];
for ( int i=0; i&lt;MAXCOLORS; i++ ) // init color array
colors[i] = TQColor( rand()&amp;255, rand()&amp;255, rand()&amp;255 );
}
@@ -108,13 +108,13 @@ ConnectWidget::~ConnectWidget()
// Handles paint events for the connect widget.
//
-<a name="x1661"></a>void ConnectWidget::<a href="tqwidget.html#paintEvent">paintEvent</a>( <a href="qpaintevent.html">TQPaintEvent</a> * )
+<a name="x1661"></a>void ConnectWidget::<a href="tqwidget.html#paintEvent">paintEvent</a>( <a href="tqpaintevent.html">TQPaintEvent</a> * )
{
- <a href="ntqpainter.html">TQPainter</a> paint( this );
+ <a href="tqpainter.html">TQPainter</a> paint( this );
for ( int i=0; i&lt;count-1; i++ ) { // connect all points
for ( int j=i+1; j&lt;count; j++ ) {
- paint.<a href="ntqpainter.html#setPen">setPen</a>( colors[rand()%MAXCOLORS] ); // set random pen color
-<a name="x1655"></a> paint.<a href="ntqpainter.html#drawLine">drawLine</a>( points[i], points[j] ); // draw line
+ paint.<a href="tqpainter.html#setPen">setPen</a>( colors[rand()%MAXCOLORS] ); // set random pen color
+<a name="x1655"></a> paint.<a href="tqpainter.html#drawLine">drawLine</a>( points[i], points[j] ); // draw line
}
}
}
@@ -150,9 +150,9 @@ ConnectWidget::~ConnectWidget()
<a name="x1658"></a>void ConnectWidget::<a href="tqwidget.html#mouseMoveEvent">mouseMoveEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a> *e )
{
if ( down &amp;&amp; count &lt; MAXPOINTS ) {
- <a href="ntqpainter.html">TQPainter</a> paint( this );
+ <a href="tqpainter.html">TQPainter</a> paint( this );
<a name="x1654"></a> points[count++] = e-&gt;<a href="qmouseevent.html#pos">pos</a>(); // add point
-<a name="x1656"></a> paint.<a href="ntqpainter.html#drawPoint">drawPoint</a>( e-&gt;<a href="qmouseevent.html#pos">pos</a>() ); // plot point
+<a name="x1656"></a> paint.<a href="tqpainter.html#drawPoint">drawPoint</a>( e-&gt;<a href="qmouseevent.html#pos">pos</a>() ); // plot point
}
}