From 4d495175043c399fdca6e1bb4c74ef176fc76fb4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 6 Aug 2025 11:29:57 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 4 Signed-off-by: Michele Calgaro --- doc/html/customlayout-example.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'doc/html/customlayout-example.html') 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 TQRect& ); private: - int doLayout( const TQRect&, bool testonly = FALSE ); + int doLayout( const TQRect&, bool testonly = false ); TQPtrList<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() bool SimpleFlow::hasHeightForWidth() const { - return TRUE; + return true; } TQSize SimpleFlow::sizeHint() const @@ -297,17 +297,17 @@ public: BorderLayout( TQWidget *parent, int border = 0, int autoBorder = -1, const char *name = 0 ) : TQLayout( parent, border, autoBorder, name ), cached( 0, 0 ), mcached( 0, 0 ), - sizeDirty( TRUE ), msizeDirty( TRUE ) + sizeDirty( true ), msizeDirty( true ) {} BorderLayout( TQLayout* parent, int autoBorder = -1, const char *name = 0 ) : TQLayout( 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 ) : TQLayout( 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 TQRect &rect ); private: - void doLayout( const TQRect &rect, bool testonly = FALSE ); + void doLayout( const TQRect &rect, bool testonly = false ); void calcSize( SizeType st ); TQPtrList<BorderLayoutStruct> list; @@ -439,13 +439,13 @@ void BorderLayout::addWidget( TQWidge void BorderLayout::add( TQLayoutItem *item, Position pos ) { list.append( new BorderLayoutStruct( item, pos ) ); - sizeDirty = TRUE; msizeDirty = TRUE; + sizeDirty = true; msizeDirty = true; calcSize( SizeHint ); calcSize( Minimum ); } bool BorderLayout::hasHeightForWidth() const { - return FALSE; + return false; } TQSize BorderLayout::sizeHint() const @@ -562,10 +562,10 @@ void BorderLayout::calcSize( SizeType st ) } if ( st == Minimum ) { - msizeDirty = FALSE; + msizeDirty = false; mcached = TQSize( w, h ); } else { - sizeDirty = FALSE; + sizeDirty = false; cached = TQSize( w, h ); } -- cgit v1.2.3