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/demo/frame.cpp | |
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/demo/frame.cpp')
-rw-r--r-- | examples/demo/frame.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/demo/frame.cpp b/examples/demo/frame.cpp index 2c4105330..da87f184a 100644 --- a/examples/demo/frame.cpp +++ b/examples/demo/frame.cpp @@ -38,16 +38,16 @@ Frame::Frame( TQWidget *parent, const char *name ) TQAccel::stringToKey( tr( "Ctrl+Q" ) ) ); TQPopupMenu *styleMenu = new TQPopupMenu( this, "style" ); - styleMenu->setCheckable( TRUE ); + styleMenu->setCheckable( true ); TQActionGroup *ag = new TQActionGroup( this, 0 ); - ag->setExclusive( TRUE ); + ag->setExclusive( true ); TQSignalMapper *styleMapper = new TQSignalMapper( this ); connect( styleMapper, TQ_SIGNAL( mapped( const TQString& ) ), this, TQ_SLOT( setStyle( const TQString& ) ) ); TQStringList list = TQStyleFactory::keys(); list.sort(); - TQDict<int> stylesDict( 17, FALSE ); + TQDict<int> stylesDict( 17, false ); for ( TQStringList::Iterator it = list.begin(); it != list.end(); ++it ) { TQString style = *it; TQString styleAccel = style; @@ -82,11 +82,11 @@ void Frame::setCategories( const TQPtrList<CategoryInterface> &l ) { categories = l; TQDockWindow *dw = new TQDockWindow( TQDockWindow::InDock, this ); - dw->setResizeEnabled( TRUE ); - dw->setVerticalStretchable( TRUE ); + dw->setResizeEnabled( true ); + dw->setVerticalStretchable( true ); addDockWindow( dw, DockLeft ); - setDockEnabled( dw, DockTop, FALSE ); - setDockEnabled( dw, DockBottom, FALSE ); + setDockEnabled( dw, DockTop, false ); + setDockEnabled( dw, DockBottom, false ); dw->setCloseMode( TQDockWindow::Always ); toolBox = new TQToolBox( dw ); @@ -113,9 +113,9 @@ TQWidget *Frame::createCategoryPage( CategoryInterface *c ) b->setBackgroundMode(PaletteBase); b->setTextLabel( c->categoryName( i ) ); b->setIconSet( c->categoryIcon( i ) ); - b->setAutoRaise( TRUE ); + b->setAutoRaise( true ); b->setTextPosition( TQToolButton::Right ); - b->setUsesTextLabel( TRUE ); + b->setUsesTextLabel( true ); g->insert( b, i + c->categoryOffset() ); connect( g, TQ_SIGNAL( clicked( int ) ), c, TQ_SLOT( setCurrentCategory( int ) ) ); } |