diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-02 23:07:22 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-02 23:22:42 +0900 |
commit | 8ac0e970e4464d9f8f73c0fb34a178ff135be8c3 (patch) | |
tree | b95884617b9a37accc843676d5d42be4116a3f54 /doc/html/drawlines-example.html | |
parent | 68b81013e8668f50fc18b7e26a520ec93a7a1251 (diff) | |
download | tqt3-8ac0e970e4464d9f8f73c0fb34a178ff135be8c3.tar.gz tqt3-8ac0e970e4464d9f8f73c0fb34a178ff135be8c3.zip |
Rename ntqwidget* related files to equivalent tqwidget*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/drawlines-example.html')
-rw-r--r-- | doc/html/drawlines-example.html | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/doc/html/drawlines-example.html b/doc/html/drawlines-example.html index c41b5349c..2b66bbb56 100644 --- a/doc/html/drawlines-example.html +++ b/doc/html/drawlines-example.html @@ -49,7 +49,7 @@ release the button, and watch the lines get drawn. ** *****************************************************************************/ -#include <<a href="qwidget-h.html">ntqwidget.h</a>> +#include <<a href="tqwidget-h.html">tqwidget.h</a>> #include <<a href="qpainter-h.html">ntqpainter.h</a>> #include <<a href="qapplication-h.html">ntqapplication.h</a>> #include <stdlib.h> @@ -63,10 +63,10 @@ const int MAXCOLORS = 40; // ConnectWidget - draws connected lines // -class ConnectWidget : public <a href="ntqwidget.html">TQWidget</a> +class ConnectWidget : public <a href="tqwidget.html">TQWidget</a> { public: - ConnectWidget( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); + ConnectWidget( <a href="tqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); ~ConnectWidget(); protected: void paintEvent( <a href="qpaintevent.html">TQPaintEvent</a> * ); @@ -85,10 +85,10 @@ private: // Constructs a ConnectWidget. // -<a name="f475"></a>ConnectWidget::ConnectWidget( <a href="ntqwidget.html">TQWidget</a> *parent, const char *name ) - : <a href="ntqwidget.html">TQWidget</a>( parent, name, WStaticContents ) +<a name="f475"></a>ConnectWidget::ConnectWidget( <a href="tqwidget.html">TQWidget</a> *parent, const char *name ) + : <a href="tqwidget.html">TQWidget</a>( parent, name, WStaticContents ) { - <a href="ntqwidget.html#setBackgroundColor">setBackgroundColor</a>( white ); // white background + <a href="tqwidget.html#setBackgroundColor">setBackgroundColor</a>( white ); // white background count = 0; down = FALSE; points = new <a href="ntqpoint.html">TQPoint</a>[MAXPOINTS]; @@ -108,7 +108,7 @@ ConnectWidget::~ConnectWidget() // Handles paint events for the connect widget. // -<a name="x1661"></a>void ConnectWidget::<a href="ntqwidget.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="qpaintevent.html">TQPaintEvent</a> * ) { <a href="ntqpainter.html">TQPainter</a> paint( this ); for ( int i=0; i<count-1; i++ ) { // connect all points @@ -124,11 +124,11 @@ ConnectWidget::~ConnectWidget() // Handles mouse press events for the connect widget. // -<a name="x1659"></a>void ConnectWidget::<a href="ntqwidget.html#mousePressEvent">mousePressEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a> * ) +<a name="x1659"></a>void ConnectWidget::<a href="tqwidget.html#mousePressEvent">mousePressEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a> * ) { down = TRUE; count = 0; // start recording points - <a href="ntqwidget.html#erase">erase</a>(); // erase widget contents + <a href="tqwidget.html#erase">erase</a>(); // erase widget contents } @@ -136,10 +136,10 @@ ConnectWidget::~ConnectWidget() // Handles mouse release events for the connect widget. // -<a name="x1660"></a>void ConnectWidget::<a href="ntqwidget.html#mouseReleaseEvent">mouseReleaseEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a> * ) +<a name="x1660"></a>void ConnectWidget::<a href="tqwidget.html#mouseReleaseEvent">mouseReleaseEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a> * ) { down = FALSE; // done recording points - <a href="ntqwidget.html#update">update</a>(); // draw the lines + <a href="tqwidget.html#update">update</a>(); // draw the lines } @@ -147,7 +147,7 @@ ConnectWidget::~ConnectWidget() // Handles mouse move events for the connect widget. // -<a name="x1658"></a>void ConnectWidget::<a href="ntqwidget.html#mouseMoveEvent">mouseMoveEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a> *e ) +<a name="x1658"></a>void ConnectWidget::<a href="tqwidget.html#mouseMoveEvent">mouseMoveEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a> *e ) { if ( down && count < MAXPOINTS ) { <a href="ntqpainter.html">TQPainter</a> paint( this ); @@ -166,10 +166,10 @@ int main( int argc, char **argv ) <a href="ntqapplication.html">TQApplication</a> a( argc, argv ); ConnectWidget connect; #ifndef TQT_NO_WIDGET_TOPEXTRA // for TQt/Embedded minimal build - connect.<a href="ntqwidget.html#setCaption">setCaption</a>( "TQt Example - Draw lines"); + connect.<a href="tqwidget.html#setCaption">setCaption</a>( "TQt Example - Draw lines"); #endif a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &connect ); - connect.<a href="ntqwidget.html#show">show</a>(); + connect.<a href="tqwidget.html#show">show</a>(); return a.<a href="ntqapplication.html#exec">exec</a>(); } </pre> |