diff options
Diffstat (limited to 'doc/html/scribble-example.html')
-rw-r--r-- | doc/html/scribble-example.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/html/scribble-example.html b/doc/html/scribble-example.html index a82937778..b11b09d23 100644 --- a/doc/html/scribble-example.html +++ b/doc/html/scribble-example.html @@ -157,11 +157,11 @@ protected slots: #include <<a href="tqpopupmenu-h.html">tqpopupmenu.h</a>> #include <<a href="tqintdict-h.html">tqintdict.h</a>> -const bool no_writing = FALSE; +const bool no_writing = false; <a name="f338"></a>Canvas::Canvas( <a href="tqwidget.html">TQWidget</a> *parent, const char *name ) : <a href="tqwidget.html">TQWidget</a>( parent, name, WStaticContents ), pen( TQt::red, 3 ), polyline(3), - mousePressed( FALSE ), buffer( <a href="tqwidget.html#width">width</a>(), height() ) + mousePressed( false ), buffer( <a href="tqwidget.html#width">width</a>(), height() ) { <a name="x907"></a><a name="x906"></a> if ((tqApp-><a href="tqapplication.html#argc">argc</a>() > 0) && !buffer.load(tqApp-><a href="tqapplication.html#argv">argv</a>()[1])) @@ -181,18 +181,18 @@ void <a name="f339"></a>Canvas::save( const <a href="tqstring.html">TQString</a> void <a name="f340"></a>Canvas::clearScreen() { buffer.fill( <a href="tqwidget.html#colorGroup">colorGroup</a>().base() ); - <a href="tqwidget.html#repaint">repaint</a>( FALSE ); + <a href="tqwidget.html#repaint">repaint</a>( false ); } <a name="x949"></a>void Canvas::<a href="tqwidget.html#mousePressEvent">mousePressEvent</a>( <a href="tqmouseevent.html">TQMouseEvent</a> *e ) { - mousePressed = TRUE; + mousePressed = true; polyline[2] = polyline[1] = polyline[0] = e-><a href="tqmouseevent.html#pos">pos</a>(); } <a name="x950"></a>void Canvas::<a href="tqwidget.html#mouseReleaseEvent">mouseReleaseEvent</a>( <a href="tqmouseevent.html">TQMouseEvent</a> * ) { - mousePressed = FALSE; + mousePressed = false; } <a name="x948"></a>void Canvas::<a href="tqwidget.html#mouseMoveEvent">mouseMoveEvent</a>( <a href="tqmouseevent.html">TQMouseEvent</a> *e ) @@ -279,14 +279,14 @@ void <a name="f342"></a>Scribble::slotSave() { <a href="tqpopupmenu.html">TQPopupMenu</a> *menu = new <a href="tqpopupmenu.html">TQPopupMenu</a>( 0 ); <a href="tqintdict.html">TQIntDict</a><TQString> formats; -<a name="x924"></a> formats.<a href="tqptrcollection.html#setAutoDelete">setAutoDelete</a>( TRUE ); +<a name="x924"></a> formats.<a href="tqptrcollection.html#setAutoDelete">setAutoDelete</a>( true ); for ( unsigned int i = 0; i < TQImageIO::<a href="tqimageio.html#outputFormats">outputFormats</a>().count(); i++ ) { <a name="x911"></a> <a href="tqstring.html">TQString</a> str = TQString( TQImageIO::<a href="tqimageio.html#outputFormats">outputFormats</a>().at( i ) ); <a name="x912"></a> formats.<a href="tqintdict.html#insert">insert</a>( menu-><a href="tqmenudata.html#insertItem">insertItem</a>( TQString( "%1..." ).arg( str ) ), new <a href="tqstring.html">TQString</a>( str ) ); } -<a name="x953"></a> menu-><a href="tqwidget.html#setMouseTracking">setMouseTracking</a>( TRUE ); +<a name="x953"></a> menu-><a href="tqwidget.html#setMouseTracking">setMouseTracking</a>( true ); <a name="x947"></a><a name="x946"></a><a name="x923"></a> int id = menu-><a href="tqpopupmenu.html#exec">exec</a>( bSave-><a href="tqwidget.html#mapToGlobal">mapToGlobal</a>( TQPoint( 0, bSave-><a href="tqwidget.html#height">height</a>() + 1 ) ) ); if ( id != -1 ) { |