From ea318d1431c89e647598c510c4245c6571aa5f46 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 26 Jan 2012 23:32:43 -0600 Subject: Update to latest tqt3 automated conversion --- doc/html/cursor-example.html | 66 ++++++++++++++++++++++---------------------- 1 file changed, 33 insertions(+), 33 deletions(-) (limited to 'doc/html/cursor-example.html') diff --git a/doc/html/cursor-example.html b/doc/html/cursor-example.html index fe12aac7f..2403c27f3 100644 --- a/doc/html/cursor-example.html +++ b/doc/html/cursor-example.html @@ -46,11 +46,11 @@ This example shows how to set a mouse cursor for a widget. ** *****************************************************************************/ -#include <qlabel.h> -#include <qbitmap.h> -#include <qapplication.h> -#include <qlayout.h> -#include <qcursor.h> +#include <ntqlabel.h> +#include <ntqbitmap.h> +#include <ntqapplication.h> +#include <ntqlayout.h> +#include <ntqcursor.h> // cb_bits and cm_bits were generated by X bitmap program. @@ -91,7 +91,7 @@ static unsigned char cm_bits[] = { // cursor bitmap mask // The CursorView contains many labels with different cursors. // -class CursorView : public TQWidget // cursor view +class CursorView : public TQWidget // cursor view { public: CursorView(); @@ -130,43 +130,43 @@ CursorView::CursorView() // construct view setCaption( "CursorView" ); // set window caption TQGridLayout* grid = new TQGridLayout( this, 5, 4, 20 ); - TQLabel *label; + TQLabel *label; int i=0; for ( int y=0; y<4; y++ ) { // create the small labels for ( int x=0; x<4; x++ ) { - label = new TQLabel( this ); - label->setCursor( TQCursor( list[i].shape ) ); - label->setText( list[i].name ); - label->setAlignment( AlignCenter ); - label->setMargin( 10 ); - label->setFrameStyle( TQFrame::Box | TQFrame::Raised ); + label = new TQLabel( this ); + label->setCursor( TQCursor( list[i].shape ) ); + label->setText( list[i].name ); + label->setAlignment( AlignCenter ); + label->setMargin( 10 ); + label->setFrameStyle( TQFrame::Box | TQFrame::Raised ); grid->addWidget( label, x, y ); i++; } } - label = new TQLabel( this ); - label->setCursor( TQCursor( list[i].shape ) ); - label->setText( list[i].name ); - label->setAlignment( AlignCenter ); - label->setMargin( 10 ); - label->setFrameStyle( TQFrame::Box | TQFrame::Raised ); + label = new TQLabel( this ); + label->setCursor( TQCursor( list[i].shape ) ); + label->setText( list[i].name ); + label->setAlignment( AlignCenter ); + label->setMargin( 10 ); + label->setFrameStyle( TQFrame::Box | TQFrame::Raised ); grid->addWidget( label, 4, 0 ); - TQBitmap cb( cb_width, cb_height, cb_bits, TRUE ); - TQBitmap cm( cm_width, cm_height, cm_bits, TRUE ); - TQCursor custom( cb, cm ); // create bitmap cursor + TQBitmap cb( cb_width, cb_height, cb_bits, TRUE ); + TQBitmap cm( cm_width, cm_height, cm_bits, TRUE ); + TQCursor custom( cb, cm ); // create bitmap cursor - label = new TQLabel( this ); // create the big label - label->setCursor( custom ); - label->setText( "Custom bitmap cursor" ); - label->setAlignment( AlignCenter ); - label->setMargin( 10 ); - label->setFrameStyle( TQFrame::Box | TQFrame::Sunken ); + label = new TQLabel( this ); // create the big label + label->setCursor( custom ); + label->setText( "Custom bitmap cursor" ); + label->setAlignment( AlignCenter ); + label->setMargin( 10 ); + label->setFrameStyle( TQFrame::Box | TQFrame::Sunken ); grid->addMultiCellWidget( label, 4, 4, 1, 3 ); } @@ -178,12 +178,12 @@ CursorView::CursorView() // construct view int main( int argc, char **argv ) { - TQApplication a( argc, argv ); // application object + TQApplication a( argc, argv ); // application object CursorView v; // cursor view - a.setMainWidget( &v ); - v.setCaption("TQt Example - Cursors"); - v.show(); - return a.exec(); + a.setMainWidget( &v ); + v.setCaption("TQt Example - Cursors"); + v.show(); + return a.exec(); } -- cgit v1.2.3