summaryrefslogtreecommitdiffstats
path: root/doc/html/drawlines-example.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-06-02 23:07:22 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-06-02 23:22:42 +0900
commit8ac0e970e4464d9f8f73c0fb34a178ff135be8c3 (patch)
treeb95884617b9a37accc843676d5d42be4116a3f54 /doc/html/drawlines-example.html
parent68b81013e8668f50fc18b7e26a520ec93a7a1251 (diff)
downloadtqt3-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.html28
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 &lt;<a href="qwidget-h.html">ntqwidget.h</a>&gt;
+#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="qapplication-h.html">ntqapplication.h</a>&gt;
#include &lt;stdlib.h&gt;
@@ -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&lt;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 &amp;&amp; count &lt; 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>( &amp;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>