diff options
Diffstat (limited to 'doc/html/customlayout-example.html')
-rw-r--r-- | doc/html/customlayout-example.html | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/html/customlayout-example.html b/doc/html/customlayout-example.html index a900f2af2..4249cc65b 100644 --- a/doc/html/customlayout-example.html +++ b/doc/html/customlayout-example.html @@ -85,7 +85,7 @@ protected: void setGeometry( const <a href="tqrect.html">TQRect</a>& ); private: - int doLayout( const <a href="tqrect.html">TQRect</a>&, bool testonly = FALSE ); + int doLayout( const <a href="tqrect.html">TQRect</a>&, bool testonly = false ); <a href="tqptrlist.html">TQPtrList</a><TQLayoutItem> list; int cached_width; int cached_hfw; @@ -157,7 +157,7 @@ SimpleFlow::~SimpleFlow() if ( cached_width != w ) { //Not all C++ compilers support "mutable" yet: SimpleFlow * mthis = (SimpleFlow*)this; - int h = mthis->doLayout( TQRect(0,0,w,0), TRUE ); + int h = mthis->doLayout( TQRect(0,0,w,0), true ); mthis->cached_hfw = h; mthis->cached_width = w; return h; @@ -172,7 +172,7 @@ SimpleFlow::~SimpleFlow() <a name="x1472"></a>bool SimpleFlow::<a href="tqlayoutitem.html#hasHeightForWidth">hasHeightForWidth</a>() const { - return TRUE; + return true; } <a name="x1476"></a>TQSize SimpleFlow::<a href="tqlayoutitem.html#sizeHint">sizeHint</a>() const @@ -297,17 +297,17 @@ public: BorderLayout( <a href="tqwidget.html">TQWidget</a> *parent, int border = 0, int autoBorder = -1, const char *name = 0 ) : <a href="tqlayout.html">TQLayout</a>( parent, border, autoBorder, name ), cached( 0, 0 ), mcached( 0, 0 ), - sizeDirty( TRUE ), msizeDirty( TRUE ) + sizeDirty( true ), msizeDirty( true ) {} BorderLayout( <a href="tqlayout.html">TQLayout</a>* parent, int autoBorder = -1, const char *name = 0 ) : <a href="tqlayout.html">TQLayout</a>( parent, autoBorder, name ), cached( 0, 0 ), mcached( 0, 0 ), - sizeDirty( TRUE ), msizeDirty( TRUE ) + sizeDirty( true ), msizeDirty( true ) {} BorderLayout( int autoBorder = -1, const char *name = 0 ) : <a href="tqlayout.html">TQLayout</a>( autoBorder, name ), cached( 0, 0 ), mcached( 0, 0 ), - sizeDirty( TRUE ), msizeDirty( TRUE ) + sizeDirty( true ), msizeDirty( true ) {} ~BorderLayout(); @@ -330,7 +330,7 @@ protected: void setGeometry( const <a href="tqrect.html">TQRect</a> &rect ); private: - void doLayout( const <a href="tqrect.html">TQRect</a> &rect, bool testonly = FALSE ); + void doLayout( const <a href="tqrect.html">TQRect</a> &rect, bool testonly = false ); void calcSize( SizeType st ); <a href="tqptrlist.html">TQPtrList</a><BorderLayoutStruct> list; @@ -439,13 +439,13 @@ void <a name="f453"></a>BorderLayout::addWidget( <a href="tqwidget.html">TQWidge <a name="x1489"></a>void BorderLayout::<a href="tqlayout.html#add">add</a>( <a href="tqlayoutitem.html">TQLayoutItem</a> *item, Position pos ) { <a name="x1500"></a> list.<a href="tqptrlist.html#append">append</a>( new BorderLayoutStruct( item, pos ) ); - sizeDirty = TRUE; msizeDirty = TRUE; + sizeDirty = true; msizeDirty = true; calcSize( SizeHint ); calcSize( Minimum ); } <a name="x1496"></a>bool BorderLayout::<a href="tqlayoutitem.html#hasHeightForWidth">hasHeightForWidth</a>() const { - return FALSE; + return false; } <a name="x1499"></a>TQSize BorderLayout::<a href="tqlayoutitem.html#sizeHint">sizeHint</a>() const @@ -562,10 +562,10 @@ void <a name="f455"></a>BorderLayout::calcSize( SizeType st ) } if ( st == Minimum ) { - msizeDirty = FALSE; + msizeDirty = false; mcached = TQSize( w, h ); } else { - sizeDirty = FALSE; + sizeDirty = false; cached = TQSize( w, h ); } |