diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-07-15 19:08:22 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-07-18 09:31:41 +0900 |
commit | a30f5359f03c3017fa19a6770fab32d25d22cb87 (patch) | |
tree | cb365dd7a1c3666e3f972c6cad04be7b8e846cba /doc/html/scribble-example.html | |
parent | 25ad1267da6916e738a126ff5a9b41cd686adfc6 (diff) | |
download | tqt3-a30f5359f03c3017fa19a6770fab32d25d22cb87.tar.gz tqt3-a30f5359f03c3017fa19a6770fab32d25d22cb87.zip |
Rename graphics class nt* related files to equivalent tq* (part 1)
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/scribble-example.html')
-rw-r--r-- | doc/html/scribble-example.html | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/doc/html/scribble-example.html b/doc/html/scribble-example.html index 81d5aa09d..6d0ee2343 100644 --- a/doc/html/scribble-example.html +++ b/doc/html/scribble-example.html @@ -71,13 +71,13 @@ class Canvas : public <a href="tqwidget.html">TQWidget</a> public: Canvas( <a href="tqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 ); - void setPenColor( const <a href="ntqcolor.html">TQColor</a> &c ) + void setPenColor( const <a href="tqcolor.html">TQColor</a> &c ) <a name="x903"></a> { pen.<a href="ntqpen.html#setColor">setColor</a>( c ); } void setPenWidth( int w ) <a name="x904"></a> { pen.<a href="ntqpen.html#setWidth">setWidth</a>( w ); } - <a href="ntqcolor.html">TQColor</a> penColor() + <a href="tqcolor.html">TQColor</a> penColor() <a name="x902"></a> { return pen.<a href="ntqpen.html#color">color</a>(); } int penWidth() @@ -92,7 +92,7 @@ protected: void mouseReleaseEvent( <a href="qmouseevent.html">TQMouseEvent</a> *e ); void mouseMoveEvent( <a href="qmouseevent.html">TQMouseEvent</a> *e ); void resizeEvent( <a href="qresizeevent.html">TQResizeEvent</a> *e ); - void paintEvent( <a href="qpaintevent.html">TQPaintEvent</a> *e ); + void paintEvent( <a href="tqpaintevent.html">TQPaintEvent</a> *e ); <a href="ntqpen.html">TQPen</a> pen; <a href="ntqpointarray.html">TQPointArray</a> polyline; @@ -143,14 +143,14 @@ protected slots: #include <<a href="qapplication-h.html">ntqapplication.h</a>> #include <<a href="qevent-h.html">ntqevent.h</a>> -#include <<a href="qpainter-h.html">ntqpainter.h</a>> +#include <<a href="tqpainter-h.html">tqpainter.h</a>> #include <<a href="tqtoolbar-h.html">tqtoolbar.h</a>> #include <<a href="tqtoolbutton-h.html">tqtoolbutton.h</a>> #include <<a href="qspinbox-h.html">ntqspinbox.h</a>> #include <<a href="tqtooltip-h.html">tqtooltip.h</a>> #include <<a href="qrect-h.html">ntqrect.h</a>> #include <<a href="qpoint-h.html">ntqpoint.h</a>> -#include <<a href="qcolordialog-h.html">ntqcolordialog.h</a>> +#include <<a href="tqcolordialog-h.html">tqcolordialog.h</a>> #include <<a href="tqfiledialog-h.html">tqfiledialog.h</a>> #include <<a href="qcursor-h.html">ntqcursor.h</a>> #include <<a href="tqimage-h.html">tqimage.h</a>> @@ -199,14 +199,14 @@ void <a name="f340"></a>Canvas::clearScreen() <a name="x948"></a>void Canvas::<a href="tqwidget.html#mouseMoveEvent">mouseMoveEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a> *e ) { if ( mousePressed ) { - <a href="ntqpainter.html">TQPainter</a> painter; - painter.<a href="ntqpainter.html#begin">begin</a>( &buffer ); - painter.<a href="ntqpainter.html#setPen">setPen</a>( pen ); + <a href="tqpainter.html">TQPainter</a> painter; + painter.<a href="tqpainter.html#begin">begin</a>( &buffer ); + painter.<a href="tqpainter.html#setPen">setPen</a>( pen ); polyline[2] = polyline[1]; polyline[1] = polyline[0]; polyline[0] = e-><a href="qmouseevent.html#pos">pos</a>(); -<a name="x917"></a> painter.<a href="ntqpainter.html#drawPolyline">drawPolyline</a>( polyline ); -<a name="x918"></a> painter.<a href="ntqpainter.html#end">end</a>(); +<a name="x917"></a> painter.<a href="tqpainter.html#drawPolyline">drawPolyline</a>( polyline ); +<a name="x918"></a> painter.<a href="tqpainter.html#end">end</a>(); <a href="ntqrect.html">TQRect</a> r = polyline.boundingRect(); <a name="x928"></a> r = r.<a href="ntqrect.html#normalize">normalize</a>(); @@ -234,11 +234,11 @@ void <a name="f340"></a>Canvas::clearScreen() <a name="x922"></a><a name="x921"></a> <a href="tqimage.html#bitBlt">bitBlt</a>( &buffer, 0, 0, &tmp, 0, 0, tmp.<a href="ntqpixmap.html#width">width</a>(), tmp.<a href="ntqpixmap.html#height">height</a>() ); } -<a name="x951"></a>void Canvas::<a href="tqwidget.html#paintEvent">paintEvent</a>( <a href="qpaintevent.html">TQPaintEvent</a> *e ) +<a name="x951"></a>void Canvas::<a href="tqwidget.html#paintEvent">paintEvent</a>( <a href="tqpaintevent.html">TQPaintEvent</a> *e ) { TQWidget::<a href="tqwidget.html#paintEvent">paintEvent</a>( e ); -<a name="x920"></a> <a href="tqmemarray.html">TQMemArray</a><TQRect> rects = e-><a href="qpaintevent.html#region">region</a>().rects(); +<a name="x920"></a> <a href="tqmemarray.html">TQMemArray</a><TQRect> rects = e-><a href="tqpaintevent.html#region">region</a>().rects(); <a name="x913"></a> for ( uint i = 0; i < rects.<a href="tqmemarray.html#count">count</a>(); i++ ) { <a href="ntqrect.html">TQRect</a> r = rects[(int)i]; <a href="tqimage.html#bitBlt">bitBlt</a>( this, r.<a href="ntqrect.html#x">x</a>(), r.<a href="ntqrect.html#y">y</a>(), &buffer, r.<a href="ntqrect.html#x">x</a>(), r.<a href="ntqrect.html#y">y</a>(), r.<a href="ntqrect.html#width">width</a>(), r.<a href="ntqrect.html#height">height</a>() ); @@ -303,8 +303,8 @@ void <a name="f342"></a>Scribble::slotSave() void <a name="f343"></a>Scribble::slotColor() { -<a name="x909"></a> <a href="ntqcolor.html">TQColor</a> c = TQColorDialog::<a href="ntqcolordialog.html#getColor">getColor</a>( canvas->penColor(), this ); -<a name="x908"></a> if ( c.<a href="ntqcolor.html#isValid">isValid</a>() ) +<a name="x909"></a> <a href="tqcolor.html">TQColor</a> c = TQColorDialog::<a href="tqcolordialog.html#getColor">getColor</a>( canvas->penColor(), this ); +<a name="x908"></a> if ( c.<a href="tqcolor.html#isValid">isValid</a>() ) canvas->setPenColor( c ); } |