diff options
author | Timothy Pearson <[email protected]> | 2012-01-26 23:32:43 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-01-26 23:32:43 -0600 |
commit | ea318d1431c89e647598c510c4245c6571aa5f46 (patch) | |
tree | 996d29b80c30d453dda86d1a23162d441628f169 /doc/html/cursor-example.html | |
parent | aaf89d4b48f69c9293feb187db26362e550b5561 (diff) | |
download | tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.tar.gz tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.zip |
Update to latest tqt3 automated conversion
Diffstat (limited to 'doc/html/cursor-example.html')
-rw-r--r-- | doc/html/cursor-example.html | 66 |
1 files changed, 33 insertions, 33 deletions
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 <<a href="qlabel-h.html">qlabel.h</a>> -#include <<a href="qbitmap-h.html">qbitmap.h</a>> -#include <<a href="qapplication-h.html">qapplication.h</a>> -#include <<a href="qlayout-h.html">qlayout.h</a>> -#include <<a href="qcursor-h.html">qcursor.h</a>> +#include <<a href="qlabel-h.html">ntqlabel.h</a>> +#include <<a href="qbitmap-h.html">ntqbitmap.h</a>> +#include <<a href="qapplication-h.html">ntqapplication.h</a>> +#include <<a href="qlayout-h.html">ntqlayout.h</a>> +#include <<a href="qcursor-h.html">ntqcursor.h</a>> // 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 <a href="qwidget.html">TQWidget</a> // cursor view +class CursorView : public <a href="ntqwidget.html">TQWidget</a> // cursor view { public: CursorView(); @@ -130,43 +130,43 @@ CursorView::CursorView() // construct view setCaption( "CursorView" ); // set window caption <a href="qgridlayout.html">TQGridLayout</a>* grid = new <a href="qgridlayout.html">TQGridLayout</a>( this, 5, 4, 20 ); - <a href="qlabel.html">TQLabel</a> *label; + <a href="ntqlabel.html">TQLabel</a> *label; int i=0; for ( int y=0; y<4; y++ ) { // create the small labels for ( int x=0; x<4; x++ ) { - label = new <a href="qlabel.html">TQLabel</a>( this ); -<a name="x1121"></a> label-><a href="qwidget.html#setCursor">setCursor</a>( TQCursor( list[i].shape ) ); -<a name="x1119"></a> label-><a href="qlabel.html#setText">setText</a>( list[i].name ); -<a name="x1118"></a> label-><a href="qlabel.html#setAlignment">setAlignment</a>( AlignCenter ); -<a name="x1115"></a> label-><a href="qframe.html#setMargin">setMargin</a>( 10 ); -<a name="x1114"></a> label-><a href="qframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Box | TQFrame::Raised ); + label = new <a href="ntqlabel.html">TQLabel</a>( this ); +<a name="x1121"></a> label-><a href="ntqwidget.html#setCursor">setCursor</a>( TQCursor( list[i].shape ) ); +<a name="x1119"></a> label-><a href="ntqlabel.html#setText">setText</a>( list[i].name ); +<a name="x1118"></a> label-><a href="ntqlabel.html#setAlignment">setAlignment</a>( AlignCenter ); +<a name="x1115"></a> label-><a href="ntqframe.html#setMargin">setMargin</a>( 10 ); +<a name="x1114"></a> label-><a href="ntqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Box | TQFrame::Raised ); grid-><a href="qgridlayout.html#addWidget">addWidget</a>( label, x, y ); i++; } } - label = new <a href="qlabel.html">TQLabel</a>( this ); - label-><a href="qwidget.html#setCursor">setCursor</a>( TQCursor( list[i].shape ) ); - label-><a href="qlabel.html#setText">setText</a>( list[i].name ); - label-><a href="qlabel.html#setAlignment">setAlignment</a>( AlignCenter ); - label-><a href="qframe.html#setMargin">setMargin</a>( 10 ); - label-><a href="qframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Box | TQFrame::Raised ); + label = new <a href="ntqlabel.html">TQLabel</a>( this ); + label-><a href="ntqwidget.html#setCursor">setCursor</a>( TQCursor( list[i].shape ) ); + label-><a href="ntqlabel.html#setText">setText</a>( list[i].name ); + label-><a href="ntqlabel.html#setAlignment">setAlignment</a>( AlignCenter ); + label-><a href="ntqframe.html#setMargin">setMargin</a>( 10 ); + label-><a href="ntqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Box | TQFrame::Raised ); grid-><a href="qgridlayout.html#addWidget">addWidget</a>( label, 4, 0 ); - <a href="qbitmap.html">TQBitmap</a> cb( cb_width, cb_height, cb_bits, TRUE ); - <a href="qbitmap.html">TQBitmap</a> cm( cm_width, cm_height, cm_bits, TRUE ); - <a href="qcursor.html">TQCursor</a> custom( cb, cm ); // create bitmap cursor + <a href="ntqbitmap.html">TQBitmap</a> cb( cb_width, cb_height, cb_bits, TRUE ); + <a href="ntqbitmap.html">TQBitmap</a> cm( cm_width, cm_height, cm_bits, TRUE ); + <a href="ntqcursor.html">TQCursor</a> custom( cb, cm ); // create bitmap cursor - label = new <a href="qlabel.html">TQLabel</a>( this ); // create the big label - label-><a href="qwidget.html#setCursor">setCursor</a>( custom ); - label-><a href="qlabel.html#setText">setText</a>( "Custom bitmap cursor" ); - label-><a href="qlabel.html#setAlignment">setAlignment</a>( AlignCenter ); - label-><a href="qframe.html#setMargin">setMargin</a>( 10 ); - label-><a href="qframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Box | TQFrame::Sunken ); + label = new <a href="ntqlabel.html">TQLabel</a>( this ); // create the big label + label-><a href="ntqwidget.html#setCursor">setCursor</a>( custom ); + label-><a href="ntqlabel.html#setText">setText</a>( "Custom bitmap cursor" ); + label-><a href="ntqlabel.html#setAlignment">setAlignment</a>( AlignCenter ); + label-><a href="ntqframe.html#setMargin">setMargin</a>( 10 ); + label-><a href="ntqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Box | TQFrame::Sunken ); <a name="x1116"></a> grid-><a href="qgridlayout.html#addMultiCellWidget">addMultiCellWidget</a>( label, 4, 4, 1, 3 ); } @@ -178,12 +178,12 @@ CursorView::CursorView() // construct view int main( int argc, char **argv ) { - <a href="qapplication.html">TQApplication</a> a( argc, argv ); // application object + <a href="ntqapplication.html">TQApplication</a> a( argc, argv ); // application object CursorView v; // cursor view - a.<a href="qapplication.html#setMainWidget">setMainWidget</a>( &v ); - v.<a href="qwidget.html#setCaption">setCaption</a>("TQt Example - Cursors"); - v.<a href="qwidget.html#show">show</a>(); - return a.<a href="qapplication.html#exec">exec</a>(); + a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &v ); + v.<a href="ntqwidget.html#setCaption">setCaption</a>("TQt Example - Cursors"); + v.<a href="ntqwidget.html#show">show</a>(); + return a.<a href="ntqapplication.html#exec">exec</a>(); } </pre> |