summaryrefslogtreecommitdiffstats
path: root/doc/html/progress-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/progress-example.html')
-rw-r--r--doc/html/progress-example.html60
1 files changed, 30 insertions, 30 deletions
diff --git a/doc/html/progress-example.html b/doc/html/progress-example.html
index a2e8ee3b5..a86c0cae8 100644
--- a/doc/html/progress-example.html
+++ b/doc/html/progress-example.html
@@ -52,7 +52,7 @@ demonstrates simple use of menus.
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
#include &lt;<a href="tqmenubar-h.html">tqmenubar.h</a>&gt;
#include &lt;<a href="tqpopupmenu-h.html">tqpopupmenu.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;stdlib.h&gt;
class AnimatedThingy : public <a href="ntqlabel.html">TQLabel</a> {
@@ -94,15 +94,15 @@ public:
protected:
void timerEvent(TQTimerEvent*)
{
- <a href="ntqpainter.html">TQPainter</a> p(this);
-<a name="x76"></a> <a href="ntqpen.html">TQPen</a> pn=p.<a href="ntqpainter.html#pen">pen</a>();
+ <a href="tqpainter.html">TQPainter</a> p(this);
+<a name="x76"></a> <a href="ntqpen.html">TQPen</a> pn=p.<a href="tqpainter.html#pen">pen</a>();
<a name="x80"></a> pn.<a href="ntqpen.html#setWidth">setWidth</a>(2);
<a name="x79"></a> pn.<a href="ntqpen.html#setColor">setColor</a>(backgroundColor());
-<a name="x78"></a> p.<a href="ntqpainter.html#setPen">setPen</a>(pn);
+<a name="x78"></a> p.<a href="tqpainter.html#setPen">setPen</a>(pn);
step = (step + 1) % nqix;
-<a name="x73"></a> p.<a href="ntqpainter.html#drawLine">drawLine</a>(ox[0][step], oy[0][step], ox[1][step], oy[1][step]);
+<a name="x73"></a> p.<a href="tqpainter.html#drawLine">drawLine</a>(ox[0][step], oy[0][step], ox[1][step], oy[1][step]);
inc(x0, dx0, width());
inc(y0, dy0, height());
@@ -113,31 +113,31 @@ protected:
ox[1][step] = x1;
oy[1][step] = y1;
- <a href="ntqcolor.html">TQColor</a> c;
-<a name="x66"></a> c.<a href="ntqcolor.html#setHsv">setHsv</a>( (step*255)/nqix, 255, 255 ); // rainbow effect
+ <a href="tqcolor.html">TQColor</a> c;
+<a name="x66"></a> c.<a href="tqcolor.html#setHsv">setHsv</a>( (step*255)/nqix, 255, 255 ); // rainbow effect
pn.<a href="ntqpen.html#setColor">setColor</a>(c);
- p.<a href="ntqpainter.html#setPen">setPen</a>(pn);
- p.<a href="ntqpainter.html#drawLine">drawLine</a>(ox[0][step], oy[0][step], ox[1][step], oy[1][step]);
- p.<a href="ntqpainter.html#setPen">setPen</a>(colorGroup().text());
-<a name="x74"></a> p.<a href="ntqpainter.html#drawText">drawText</a>(rect(), AlignCenter, label);
+ p.<a href="tqpainter.html#setPen">setPen</a>(pn);
+ p.<a href="tqpainter.html#drawLine">drawLine</a>(ox[0][step], oy[0][step], ox[1][step], oy[1][step]);
+ p.<a href="tqpainter.html#setPen">setPen</a>(colorGroup().text());
+<a name="x74"></a> p.<a href="tqpainter.html#drawText">drawText</a>(rect(), AlignCenter, label);
}
void paintEvent(TQPaintEvent* event)
{
- <a href="ntqpainter.html">TQPainter</a> p(this);
- <a href="ntqpen.html">TQPen</a> pn=p.<a href="ntqpainter.html#pen">pen</a>();
+ <a href="tqpainter.html">TQPainter</a> p(this);
+ <a href="ntqpen.html">TQPen</a> pn=p.<a href="tqpainter.html#pen">pen</a>();
pn.<a href="ntqpen.html#setWidth">setWidth</a>(2);
- p.<a href="ntqpainter.html#setPen">setPen</a>(pn);
-<a name="x77"></a> p.<a href="ntqpainter.html#setClipRect">setClipRect</a>(event-&gt;rect());
+ p.<a href="tqpainter.html#setPen">setPen</a>(pn);
+<a name="x77"></a> p.<a href="tqpainter.html#setClipRect">setClipRect</a>(event-&gt;rect());
for (int i=0; i&lt;nqix; i++) {
- <a href="ntqcolor.html">TQColor</a> c;
- c.<a href="ntqcolor.html#setHsv">setHsv</a>( (i*255)/nqix, 255, 255 ); // rainbow effect
+ <a href="tqcolor.html">TQColor</a> c;
+ c.<a href="tqcolor.html#setHsv">setHsv</a>( (i*255)/nqix, 255, 255 ); // rainbow effect
pn.<a href="ntqpen.html#setColor">setColor</a>(c);
- p.<a href="ntqpainter.html#setPen">setPen</a>(pn);
- p.<a href="ntqpainter.html#drawLine">drawLine</a>(ox[0][i], oy[0][i], ox[1][i], oy[1][i]);
+ p.<a href="tqpainter.html#setPen">setPen</a>(pn);
+ p.<a href="tqpainter.html#drawLine">drawLine</a>(ox[0][i], oy[0][i], ox[1][i], oy[1][i]);
}
- p.<a href="ntqpainter.html#setPen">setPen</a>(colorGroup().text());
- p.<a href="ntqpainter.html#drawText">drawText</a>(rect(), AlignCenter, label);
+ p.<a href="tqpainter.html#setPen">setPen</a>(colorGroup().text());
+ p.<a href="tqpainter.html#drawText">drawText</a>(rect(), AlignCenter, label);
}
private:
@@ -264,26 +264,26 @@ private:
rects--;
{
- <a href="ntqpainter.html">TQPainter</a> p(this);
+ <a href="tqpainter.html">TQPainter</a> p(this);
int ww = width();
int wh = height();
if ( ww &gt; 8 &amp;&amp; wh &gt; 8 ) {
- <a href="ntqcolor.html">TQColor</a> c(rand()%255, rand()%255, rand()%255);
+ <a href="tqcolor.html">TQColor</a> c(rand()%255, rand()%255, rand()%255);
int x = rand() % (ww-8);
int y = rand() % (wh-8);
int w = rand() % (ww-x);
int h = rand() % (wh-y);
-<a name="x75"></a> p.<a href="ntqpainter.html#fillRect">fillRect</a>( x, y, w, h, c );
+<a name="x75"></a> p.<a href="tqpainter.html#fillRect">fillRect</a>( x, y, w, h, c );
}
}
if (!rects || got_stop) {
if (!got_stop)
pb-&gt;<a href="ntqprogressdialog.html#setProgress">setProgress</a>( pb-&gt;<a href="ntqprogressdialog.html#totalSteps">totalSteps</a>() );
- <a href="ntqpainter.html">TQPainter</a> p(this);
- p.<a href="ntqpainter.html#fillRect">fillRect</a>(0, 0, width(), height(), backgroundColor());
+ <a href="tqpainter.html">TQPainter</a> p(this);
+ p.<a href="tqpainter.html#fillRect">fillRect</a>(0, 0, width(), height(), backgroundColor());
enableDrawingItems(TRUE);
killTimers();
delete pb;
@@ -329,21 +329,21 @@ private:
"Drawing rectangles.\nUsing loop.", n, TRUE);
lpb-&gt;<a href="tqwidget.html#setCaption">setCaption</a>("Please Wait");
- <a href="ntqpainter.html">TQPainter</a> p(this);
+ <a href="tqpainter.html">TQPainter</a> p(this);
for (int i=0; i&lt;n; i++) {
lpb-&gt;<a href="ntqprogressdialog.html#setProgress">setProgress</a>(i);
<a name="x87"></a> if ( lpb-&gt;<a href="ntqprogressdialog.html#wasCancelled">wasCancelled</a>() )
break;
- <a href="ntqcolor.html">TQColor</a> c(rand()%255, rand()%255, rand()%255);
+ <a href="tqcolor.html">TQColor</a> c(rand()%255, rand()%255, rand()%255);
int x = rand()%(width()-8);
int y = rand()%(height()-8);
int w = rand()%(width()-x);
int h = rand()%(height()-y);
- p.<a href="ntqpainter.html#fillRect">fillRect</a>(x,y,w,h,c);
+ p.<a href="tqpainter.html#fillRect">fillRect</a>(x,y,w,h,c);
}
- p.<a href="ntqpainter.html#fillRect">fillRect</a>(0, 0, width(), height(), backgroundColor());
+ p.<a href="tqpainter.html#fillRect">fillRect</a>(0, 0, width(), height(), backgroundColor());
delete lpb;
}