summaryrefslogtreecommitdiffstats
path: root/examples/demo/frame.cpp
diff options
context:
space:
mode:
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 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 ) ) );
}