diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-11-26 15:11:22 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-11-26 15:11:22 +0900 |
| commit | b87533f9904c10f24d6b2e8177c00944e3efe15b (patch) | |
| tree | c1106a381c851b51e86004698457aef1211b77be /doc/html/customlayout-example.html | |
| parent | 894037c3e68e1573a34183d936171f8cda5085f3 (diff) | |
| download | tqt-r14.1.x.tar.gz tqt-r14.1.x.zip | |
Replace TRUE/FALSE with boolean values true/false - part 4r14.1.x
Manually cherry-picked from commit 4d495175
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
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 671889c08..b4995ebaa 100644 --- a/doc/html/customlayout-example.html +++ b/doc/html/customlayout-example.html @@ -86,7 +86,7 @@ protected: void setGeometry( const <a href="ntqrect.html">TQRect</a>& ); private: - int doLayout( const <a href="ntqrect.html">TQRect</a>&, bool testonly = FALSE ); + int doLayout( const <a href="ntqrect.html">TQRect</a>&, bool testonly = false ); <a href="ntqptrlist.html">TQPtrList</a><TQLayoutItem> list; int cached_width; int cached_hfw; @@ -158,7 +158,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; @@ -173,7 +173,7 @@ SimpleFlow::~SimpleFlow() <a name="x1472"></a>bool SimpleFlow::<a href="qlayoutitem.html#hasHeightForWidth">hasHeightForWidth</a>() const { - return TRUE; + return true; } <a name="x1476"></a>TQSize SimpleFlow::<a href="qlayoutitem.html#sizeHint">sizeHint</a>() const @@ -298,17 +298,17 @@ public: BorderLayout( <a href="ntqwidget.html">TQWidget</a> *parent, int border = 0, int autoBorder = -1, const char *name = 0 ) : <a href="ntqlayout.html">TQLayout</a>( parent, border, autoBorder, name ), cached( 0, 0 ), mcached( 0, 0 ), - sizeDirty( TRUE ), msizeDirty( TRUE ) + sizeDirty( true ), msizeDirty( true ) {} BorderLayout( <a href="ntqlayout.html">TQLayout</a>* parent, int autoBorder = -1, const char *name = 0 ) : <a href="ntqlayout.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="ntqlayout.html">TQLayout</a>( autoBorder, name ), cached( 0, 0 ), mcached( 0, 0 ), - sizeDirty( TRUE ), msizeDirty( TRUE ) + sizeDirty( true ), msizeDirty( true ) {} ~BorderLayout(); @@ -331,7 +331,7 @@ protected: void setGeometry( const <a href="ntqrect.html">TQRect</a> &rect ); private: - void doLayout( const <a href="ntqrect.html">TQRect</a> &rect, bool testonly = FALSE ); + void doLayout( const <a href="ntqrect.html">TQRect</a> &rect, bool testonly = false ); void calcSize( SizeType st ); <a href="ntqptrlist.html">TQPtrList</a><BorderLayoutStruct> list; @@ -440,13 +440,13 @@ void <a name="f453"></a>BorderLayout::addWidget( <a href="ntqwidget.html">TQWidg <a name="x1489"></a>void BorderLayout::<a href="ntqlayout.html#add">add</a>( <a href="qlayoutitem.html">TQLayoutItem</a> *item, Position pos ) { <a name="x1500"></a> list.<a href="ntqptrlist.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="qlayoutitem.html#hasHeightForWidth">hasHeightForWidth</a>() const { - return FALSE; + return false; } <a name="x1499"></a>TQSize BorderLayout::<a href="qlayoutitem.html#sizeHint">sizeHint</a>() const @@ -563,10 +563,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 ); } |
