summaryrefslogtreecommitdiffstats
path: root/doc/html/cursor-example.html
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-01-26 23:32:43 -0600
committerTimothy Pearson <[email protected]>2012-01-26 23:32:43 -0600
commitea318d1431c89e647598c510c4245c6571aa5f46 (patch)
tree996d29b80c30d453dda86d1a23162d441628f169 /doc/html/cursor-example.html
parentaaf89d4b48f69c9293feb187db26362e550b5561 (diff)
downloadtqt3-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.html66
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 &lt;<a href="qlabel-h.html">qlabel.h</a>&gt;
-#include &lt;<a href="qbitmap-h.html">qbitmap.h</a>&gt;
-#include &lt;<a href="qapplication-h.html">qapplication.h</a>&gt;
-#include &lt;<a href="qlayout-h.html">qlayout.h</a>&gt;
-#include &lt;<a href="qcursor-h.html">qcursor.h</a>&gt;
+#include &lt;<a href="qlabel-h.html">ntqlabel.h</a>&gt;
+#include &lt;<a href="qbitmap-h.html">ntqbitmap.h</a>&gt;
+#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
+#include &lt;<a href="qlayout-h.html">ntqlayout.h</a>&gt;
+#include &lt;<a href="qcursor-h.html">ntqcursor.h</a>&gt;
// 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&lt;4; y++ ) { // create the small labels
for ( int x=0; x&lt;4; x++ ) {
- label = new <a href="qlabel.html">TQLabel</a>( this );
-<a name="x1121"></a> label-&gt;<a href="qwidget.html#setCursor">setCursor</a>( TQCursor( list[i].shape ) );
-<a name="x1119"></a> label-&gt;<a href="qlabel.html#setText">setText</a>( list[i].name );
-<a name="x1118"></a> label-&gt;<a href="qlabel.html#setAlignment">setAlignment</a>( AlignCenter );
-<a name="x1115"></a> label-&gt;<a href="qframe.html#setMargin">setMargin</a>( 10 );
-<a name="x1114"></a> label-&gt;<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-&gt;<a href="ntqwidget.html#setCursor">setCursor</a>( TQCursor( list[i].shape ) );
+<a name="x1119"></a> label-&gt;<a href="ntqlabel.html#setText">setText</a>( list[i].name );
+<a name="x1118"></a> label-&gt;<a href="ntqlabel.html#setAlignment">setAlignment</a>( AlignCenter );
+<a name="x1115"></a> label-&gt;<a href="ntqframe.html#setMargin">setMargin</a>( 10 );
+<a name="x1114"></a> label-&gt;<a href="ntqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Box | TQFrame::Raised );
grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( label, x, y );
i++;
}
}
- label = new <a href="qlabel.html">TQLabel</a>( this );
- label-&gt;<a href="qwidget.html#setCursor">setCursor</a>( TQCursor( list[i].shape ) );
- label-&gt;<a href="qlabel.html#setText">setText</a>( list[i].name );
- label-&gt;<a href="qlabel.html#setAlignment">setAlignment</a>( AlignCenter );
- label-&gt;<a href="qframe.html#setMargin">setMargin</a>( 10 );
- label-&gt;<a href="qframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Box | TQFrame::Raised );
+ label = new <a href="ntqlabel.html">TQLabel</a>( this );
+ label-&gt;<a href="ntqwidget.html#setCursor">setCursor</a>( TQCursor( list[i].shape ) );
+ label-&gt;<a href="ntqlabel.html#setText">setText</a>( list[i].name );
+ label-&gt;<a href="ntqlabel.html#setAlignment">setAlignment</a>( AlignCenter );
+ label-&gt;<a href="ntqframe.html#setMargin">setMargin</a>( 10 );
+ label-&gt;<a href="ntqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Box | TQFrame::Raised );
grid-&gt;<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-&gt;<a href="qwidget.html#setCursor">setCursor</a>( custom );
- label-&gt;<a href="qlabel.html#setText">setText</a>( "Custom bitmap cursor" );
- label-&gt;<a href="qlabel.html#setAlignment">setAlignment</a>( AlignCenter );
- label-&gt;<a href="qframe.html#setMargin">setMargin</a>( 10 );
- label-&gt;<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-&gt;<a href="ntqwidget.html#setCursor">setCursor</a>( custom );
+ label-&gt;<a href="ntqlabel.html#setText">setText</a>( "Custom bitmap cursor" );
+ label-&gt;<a href="ntqlabel.html#setAlignment">setAlignment</a>( AlignCenter );
+ label-&gt;<a href="ntqframe.html#setMargin">setMargin</a>( 10 );
+ label-&gt;<a href="ntqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Box | TQFrame::Sunken );
<a name="x1116"></a> grid-&gt;<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>( &amp;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>( &amp;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>