diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-07-01 22:09:14 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-07-08 08:53:47 +0900 |
| commit | c03a4800879ab62692e017e01c825ba12a421ad0 (patch) | |
| tree | 57aeff4300eb9fa64d193569f56b2d98305b49a2 /examples/customlayout | |
| parent | 030b165ac197ce4c2eb62c7700dc4c10604637aa (diff) | |
| download | tqt-c03a4800879ab62692e017e01c825ba12a421ad0.tar.gz tqt-c03a4800879ab62692e017e01c825ba12a421ad0.zip | |
Replace TRUE/FALSE with boolean values true/false - part 2
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'examples/customlayout')
| -rw-r--r-- | examples/customlayout/border.cpp | 8 | ||||
| -rw-r--r-- | examples/customlayout/border.h | 8 | ||||
| -rw-r--r-- | examples/customlayout/flow.cpp | 4 | ||||
| -rw-r--r-- | examples/customlayout/flow.h | 2 |
4 files changed, 11 insertions, 11 deletions
diff --git a/examples/customlayout/border.cpp b/examples/customlayout/border.cpp index 533b3b635..9e08c41c0 100644 --- a/examples/customlayout/border.cpp +++ b/examples/customlayout/border.cpp @@ -92,13 +92,13 @@ void BorderLayout::addWidget( TQWidget *widget, Position pos ) 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 @@ -215,10 +215,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 ); } diff --git a/examples/customlayout/border.h b/examples/customlayout/border.h index 240f9859a..d427bf1c4 100644 --- a/examples/customlayout/border.h +++ b/examples/customlayout/border.h @@ -59,17 +59,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(); @@ -92,7 +92,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; diff --git a/examples/customlayout/flow.cpp b/examples/customlayout/flow.cpp index af1fdf5fe..9b5e5bc4d 100644 --- a/examples/customlayout/flow.cpp +++ b/examples/customlayout/flow.cpp @@ -57,7 +57,7 @@ int SimpleFlow::heightForWidth( int w ) const 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; @@ -72,7 +72,7 @@ void SimpleFlow::addItem( TQLayoutItem *item) bool SimpleFlow::hasHeightForWidth() const { - return TRUE; + return true; } TQSize SimpleFlow::sizeHint() const diff --git a/examples/customlayout/flow.h b/examples/customlayout/flow.h index 9debaa295..ff5bc14f8 100644 --- a/examples/customlayout/flow.h +++ b/examples/customlayout/flow.h @@ -45,7 +45,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; |
