From 8ac0e970e4464d9f8f73c0fb34a178ff135be8c3 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 2 Jun 2024 23:07:22 +0900 Subject: Rename ntqwidget* related files to equivalent tqwidget* Signed-off-by: Michele Calgaro --- doc/html/drawdemo-example.html | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'doc/html/drawdemo-example.html') 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 <ntqwidget.h> +#include <tqwidget.h> #include <ntqpainter.h> #include <ntqprinter.h> #include <ntqpushbutton.h> @@ -168,7 +168,7 @@ DrawThing ourDrawFunctions[] = { -class DrawView : public TQWidget +class DrawView : public TQWidget { TQ_OBJECT public: @@ -196,12 +196,12 @@ private: DrawView::DrawView() { - setCaption( "TQt Draw Demo Application" ); - setBackgroundMode(PaletteBase); + setCaption( "TQt Draw Demo Application" ); + setBackgroundMode(PaletteBase); // Create a button group to contain all buttons bgroup = new TQButtonGroup( this ); - bgroup->resize( 200, 200 ); + bgroup->resize( 200, 200 ); connect( bgroup, TQ_SIGNAL(clicked(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; - TQFontMetrics fm = bgroup->fontMetrics(); + TQFontMetrics fm = bgroup->fontMetrics(); // 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++ ) { TQRadioButton *rb = new TQRadioButton( n, bgroup ); - rb->setGeometry( 10, i*30+10, maxwidth, 30 ); + rb->setGeometry( 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->resize( maxwidth, maxheight ); // resize bgroup to its final size + bgroup->resize( 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 TQPushButton( "Print...", bgroup ); - print->resize( 80, 30 ); - print->move( maxwidth/2 - print->width()/2, maxindex*30+20 ); + print->resize( 80, 30 ); + print->move( maxwidth/2 - print->width()/2, maxindex*30+20 ); connect( print, TQ_SIGNAL(clicked()), TQ_SLOT(printIt()) ); // Resize bgroup to its final size when printersupport is given. - bgroup->resize( maxwidth, print->y()+print->height()+10 ); + bgroup->resize( maxwidth, print->y()+print->height()+10 ); #endif - resize( 640,300 ); + resize( 640,300 ); } // @@ -287,7 +287,7 @@ void DrawView::updateIt( int index ) { if ( index < maxindex ) { drawindex = index; - update(); + update(); } } @@ -318,7 +318,7 @@ void DrawView::printIt() // Called when the widget needs to be updated. // -void DrawView::paintEvent( TQPaintEvent * ) +void DrawView::paintEvent( TQPaintEvent * ) { TQPainter paint( this ); drawIt( &paint ); @@ -329,9 +329,9 @@ void DrawView::paintEvent( void DrawView::resizeEvent( TQResizeEvent * ) +void DrawView::resizeEvent( TQResizeEvent * ) { - bgroup->move( width()-bgroup->width(), 0 ); + bgroup->move( width()-bgroup->width(), 0 ); } @@ -346,8 +346,8 @@ int main( int argc, char **argv ) TQApplication app( argc, argv ); DrawView draw; app.setMainWidget( &draw ); - draw.setCaption("TQt Example - Drawdemo"); - draw.show(); + draw.setCaption("TQt Example - Drawdemo"); + draw.show(); return app.exec(); } -- cgit v1.2.3