summaryrefslogtreecommitdiffstats
path: root/examples/demo/frame.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-07-01 22:09:14 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-07-08 09:01:42 +0900
commit81ade129093a279e6537db25710583fd2bba9427 (patch)
treea210834cbccc8aee2e9de7a8b7f41e1d31e2ced0 /examples/demo/frame.cpp
parent35ced32e331ee29fda1642616c803637952f5b22 (diff)
downloadtqt-81ade129.tar.gz
tqt-81ade129.zip
Replace TRUE/FALSE with boolean values true/false - part 2
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit c03a4800879ab62692e017e01c825ba12a421ad0)
Diffstat (limited to 'examples/demo/frame.cpp')
-rw-r--r--examples/demo/frame.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/demo/frame.cpp b/examples/demo/frame.cpp
index a263b8b1a..d9ab42dd9 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 ) ) );
}