summaryrefslogtreecommitdiffstats
path: root/doc/html/drawdemo-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/drawdemo-example.html
parent68b81013e8668f50fc18b7e26a520ec93a7a1251 (diff)
downloadtqt-8ac0e970.tar.gz
tqt-8ac0e970.zip
Rename ntqwidget* related files to equivalent tqwidget*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/drawdemo-example.html')
-rw-r--r--doc/html/drawdemo-example.html36
1 files changed, 18 insertions, 18 deletions
diff --git a/doc/html/drawdemo-example.html b/doc/html/drawdemo-example.html
index cb36f1d3f..228328253 100644
--- a/doc/html/drawdemo-example.html
+++ b/doc/html/drawdemo-example.html
@@ -47,7 +47,7 @@ You can easily add you own drawing functions.
**
*****************************************************************************/
-#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="qprinter-h.html">ntqprinter.h</a>&gt;
#include &lt;<a href="qpushbutton-h.html">ntqpushbutton.h</a>&gt;
@@ -168,7 +168,7 @@ DrawThing ourDrawFunctions[] = {
-class DrawView : public <a href="ntqwidget.html">TQWidget</a>
+class DrawView : public <a href="tqwidget.html">TQWidget</a>
{
<a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public:
@@ -196,12 +196,12 @@ private:
<a name="f367"></a>DrawView::DrawView()
{
- <a href="ntqwidget.html#setCaption">setCaption</a>( "TQt Draw Demo Application" );
- <a href="ntqwidget.html#setBackgroundMode">setBackgroundMode</a>(PaletteBase);
+ <a href="tqwidget.html#setCaption">setCaption</a>( "TQt Draw Demo Application" );
+ <a href="tqwidget.html#setBackgroundMode">setBackgroundMode</a>(PaletteBase);
// Create a button group to contain all buttons
bgroup = new <a href="ntqbuttongroup.html">TQButtonGroup</a>( this );
-<a name="x1088"></a> bgroup-&gt;<a href="ntqwidget.html#resize">resize</a>( 200, 200 );
+<a name="x1088"></a> bgroup-&gt;<a href="tqwidget.html#resize">resize</a>( 200, 200 );
<a name="x1062"></a> <a href="tqobject.html#connect">connect</a>( bgroup, TQ_SIGNAL(<a href="ntqbuttongroup.html#clicked">clicked</a>(int)), TQ_SLOT(updateIt(int)) );
// Calculate the size for the radio buttons
@@ -209,7 +209,7 @@ private:
int maxheight = 10;
int i;
const char *n;
-<a name="x1084"></a> <a href="ntqfontmetrics.html">TQFontMetrics</a> fm = bgroup-&gt;<a href="ntqwidget.html#fontMetrics">fontMetrics</a>();
+<a name="x1084"></a> <a href="ntqfontmetrics.html">TQFontMetrics</a> fm = bgroup-&gt;<a href="tqwidget.html#fontMetrics">fontMetrics</a>();
// Find out the longest function description.
// Here we make use of the last "0,0"-entry in the
@@ -226,7 +226,7 @@ private:
for ( i=0; (n=ourDrawFunctions[i].name) != 0; i++ ) {
<a href="ntqradiobutton.html">TQRadioButton</a> *rb = new <a href="ntqradiobutton.html">TQRadioButton</a>( n, bgroup );
-<a name="x1091"></a> rb-&gt;<a href="ntqwidget.html#setGeometry">setGeometry</a>( 10, i*30+10, maxwidth, 30 );
+<a name="x1091"></a> rb-&gt;<a href="tqwidget.html#setGeometry">setGeometry</a>( 10, i*30+10, maxwidth, 30 );
maxheight += 30;
@@ -244,7 +244,7 @@ private:
maxwidth += 20; // add some margin, this results in the
// final width of bgroup
- bgroup-&gt;<a href="ntqwidget.html#resize">resize</a>( maxwidth, maxheight ); // resize bgroup to its final size
+ bgroup-&gt;<a href="tqwidget.html#resize">resize</a>( maxwidth, maxheight ); // resize bgroup to its final size
// when no printersupport is provided
@@ -257,16 +257,16 @@ private:
// Create and setup the print button
print = new <a href="ntqpushbutton.html">TQPushButton</a>( "Print...", bgroup );
-<a name="x1081"></a> print-&gt;<a href="ntqwidget.html#resize">resize</a>( 80, 30 );
-<a name="x1093"></a><a name="x1080"></a> print-&gt;<a href="ntqwidget.html#move">move</a>( maxwidth/2 - print-&gt;<a href="ntqwidget.html#width">width</a>()/2, maxindex*30+20 );
+<a name="x1081"></a> print-&gt;<a href="tqwidget.html#resize">resize</a>( 80, 30 );
+<a name="x1093"></a><a name="x1080"></a> print-&gt;<a href="tqwidget.html#move">move</a>( maxwidth/2 - print-&gt;<a href="tqwidget.html#width">width</a>()/2, maxindex*30+20 );
<a href="tqobject.html#connect">connect</a>( print, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), TQ_SLOT(printIt()) );
// Resize bgroup to its final size when printersupport is given.
-<a name="x1094"></a><a name="x1085"></a> bgroup-&gt;<a href="ntqwidget.html#resize">resize</a>( maxwidth, print-&gt;<a href="ntqwidget.html#y">y</a>()+print-&gt;<a href="ntqwidget.html#height">height</a>()+10 );
+<a name="x1094"></a><a name="x1085"></a> bgroup-&gt;<a href="tqwidget.html#resize">resize</a>( maxwidth, print-&gt;<a href="tqwidget.html#y">y</a>()+print-&gt;<a href="tqwidget.html#height">height</a>()+10 );
#endif
- <a href="ntqwidget.html#resize">resize</a>( 640,300 );
+ <a href="tqwidget.html#resize">resize</a>( 640,300 );
}
//
@@ -287,7 +287,7 @@ void <a name="f368"></a>DrawView::updateIt( int index )
{
if ( index &lt; maxindex ) {
drawindex = index;
- <a href="ntqwidget.html#update">update</a>();
+ <a href="tqwidget.html#update">update</a>();
}
}
@@ -318,7 +318,7 @@ void <a name="f370"></a>DrawView::printIt()
// Called when the widget needs to be updated.
//
-void DrawView::<a href="ntqwidget.html#paintEvent">paintEvent</a>( <a href="qpaintevent.html">TQPaintEvent</a> * )
+void DrawView::<a href="tqwidget.html#paintEvent">paintEvent</a>( <a href="qpaintevent.html">TQPaintEvent</a> * )
{
<a href="ntqpainter.html">TQPainter</a> paint( this );
drawIt( &amp;paint );
@@ -329,9 +329,9 @@ void DrawView::<a href="ntqwidget.html#paintEvent">paintEvent</a>( <a href="qpai
// Moves the button group to the upper right corner
// of the widget.
-<a name="x1089"></a>void DrawView::<a href="ntqwidget.html#resizeEvent">resizeEvent</a>( <a href="qresizeevent.html">TQResizeEvent</a> * )
+<a name="x1089"></a>void DrawView::<a href="tqwidget.html#resizeEvent">resizeEvent</a>( <a href="qresizeevent.html">TQResizeEvent</a> * )
{
-<a name="x1086"></a> bgroup-&gt;<a href="ntqwidget.html#move">move</a>( <a href="ntqwidget.html#width">width</a>()-bgroup-&gt;<a href="ntqwidget.html#width">width</a>(), 0 );
+<a name="x1086"></a> bgroup-&gt;<a href="tqwidget.html#move">move</a>( <a href="tqwidget.html#width">width</a>()-bgroup-&gt;<a href="tqwidget.html#width">width</a>(), 0 );
}
@@ -346,8 +346,8 @@ int main( int argc, char **argv )
<a href="ntqapplication.html">TQApplication</a> app( argc, argv );
DrawView draw;
app.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &amp;draw );
- draw.<a href="ntqwidget.html#setCaption">setCaption</a>("TQt Example - Drawdemo");
- draw.<a href="ntqwidget.html#show">show</a>();
+ draw.<a href="tqwidget.html#setCaption">setCaption</a>("TQt Example - Drawdemo");
+ draw.<a href="tqwidget.html#show">show</a>();
return app.<a href="ntqapplication.html#exec">exec</a>();
}
</pre>