diff options
Diffstat (limited to 'src/widgets/tqtabbar.cpp')
| -rw-r--r-- | src/widgets/tqtabbar.cpp | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/src/widgets/tqtabbar.cpp b/src/widgets/tqtabbar.cpp index 0d3ea9c70..4d3bacbae 100644 --- a/src/widgets/tqtabbar.cpp +++ b/src/widgets/tqtabbar.cpp @@ -74,7 +74,7 @@ */ TQTab::TQTab() - : enabled( TRUE ), + : enabled( true ), id ( 0 ), iconset( 0 ), tb( 0 ) @@ -87,7 +87,7 @@ TQTab::TQTab() TQTab::TQTab( const TQString &text ) : label( text ), - enabled( TRUE ), + enabled( true ), id( 0 ), iconset( 0 ), tb( 0 ) @@ -100,7 +100,7 @@ TQTab::TQTab( const TQString &text ) TQTab::TQTab( const TQIconSet& icon, const TQString& text ) : label( text ), - enabled( TRUE ), + enabled( true ), id( 0 ), iconset( new TQIconSet(icon) ), tb( 0 ) @@ -134,13 +134,13 @@ TQTab::TQTab( const TQIconSet& icon, const TQString& text ) /*! \fn void TQTab::setEnabled( bool enable ) - If \a enable is TRUE enable the TQTab, otherwise disable it. + If \a enable is true enable the TQTab, otherwise disable it. */ /*! \fn bool TQTab::isEnabled() const - Returns TRUE if the TQTab is enabled; otherwise returns FALSE. + Returns true if the TQTab is enabled; otherwise returns false. */ /*! @@ -348,7 +348,7 @@ TQTabBar::TQTabBar( TQWidget * parent, const char *name ) connect( d->a, TQ_SIGNAL(activatedAmbiguously(int)), this, TQ_SLOT(setCurrentTab(int)) ); #endif d->s = RoundedAbove; - d->scrolls = FALSE; + d->scrolls = false; d->leftB = new TQToolButton( LeftArrow, this, "qt_left_btn" ); connect( d->leftB, TQ_SIGNAL( clicked() ), this, TQ_SLOT( scrollTabs() ) ); d->leftB->hide(); @@ -358,7 +358,7 @@ TQTabBar::TQTabBar( TQWidget * parent, const char *name ) d->btnWidth = style().pixelMetric(TQStyle::PM_TabBarScrollButtonWidth, this); l = new TQPtrList<TQTab>; lstatic = new TQPtrList<TQTab>; - lstatic->setAutoDelete( TRUE ); + lstatic->setAutoDelete( true ); setFocusPolicy( TabFocus ); setSizePolicy( TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::Fixed ) ); } @@ -475,9 +475,9 @@ void TQTabBar::removeTab( TQTab * t ) /*! - Enables tab \a id if \a enabled is TRUE or disables it if \a - enabled is FALSE. If \a id is currently selected, - setTabEnabled(FALSE) makes another tab selected. + Enables tab \a id if \a enabled is true or disables it if \a + enabled is false. If \a id is currently selected, + setTabEnabled(false) makes another tab selected. setTabEnabled() updates the display if this causes a change in \a id's status. @@ -519,7 +519,7 @@ void TQTabBar::setTabEnabled( int id, bool enabled ) emit selected( t->id ); } } - repaint( r, FALSE ); + repaint( r, false ); } return; } @@ -528,8 +528,8 @@ void TQTabBar::setTabEnabled( int id, bool enabled ) /*! - Returns TRUE if the tab with id \a id exists and is enabled; - otherwise returns FALSE. + Returns true if the tab with id \a id exists and is enabled; + otherwise returns false. \sa setTabEnabled() */ @@ -539,7 +539,7 @@ bool TQTabBar::isTabEnabled( int id ) const TQTab * t = tab( id ); if ( t ) return t->enabled; - return FALSE; + return false; } @@ -572,7 +572,7 @@ TQSize TQTabBar::minimumSizeHint() const /*! Paints the tab \a t using painter \a p. If and only if \a selected - is TRUE, \a t is drawn currently selected. + is true, \a t is drawn currently selected. This virtual function may be reimplemented to change the look of TQTabBar. If you decide to reimplement it, you may also need to @@ -628,7 +628,7 @@ void TQTabBar::paint( TQPainter * p, TQTab * t, bool selected ) const /*! Paints the label of tab \a t centered in rectangle \a br using - painter \a p. A focus indication is drawn if \a has_focus is TRUE. + painter \a p. A focus indication is drawn if \a has_focus is true. */ void TQTabBar::paintLabel( TQPainter* p, const TQRect& br, @@ -741,7 +741,7 @@ void TQTabBar::paintEvent( TQPaintEvent * e ) TQTab * TQTabBar::selectTab( const TQPoint & p ) const { TQTab * selected = 0; - bool moreThanOne = FALSE; + bool moreThanOne = false; TQPtrListIterator<TQTab> i( *l ); while( i.current() ) { @@ -750,7 +750,7 @@ TQTab * TQTabBar::selectTab( const TQPoint & p ) const if ( t && t->r.contains( p ) ) { if ( selected ) - moreThanOne = TRUE; + moreThanOne = true; else selected = t; } @@ -775,7 +775,7 @@ void TQTabBar::mousePressEvent( TQMouseEvent * e ) if(e->type() == style().styleHint( TQStyle::SH_TabBar_SelectMouseType, this )) setCurrentTab( t ); else - repaint(t->rect(), FALSE); + repaint(t->rect(), false); } } @@ -808,12 +808,12 @@ void TQTabBar::mouseMoveEvent ( TQMouseEvent *e ) if(t != d->pressed) { if (d->pressed) { if (!forceRepaint) { - repaint(d->pressed->rect(), FALSE); + repaint(d->pressed->rect(), false); } } if ((d->pressed = t)) { if (!forceRepaint) { - repaint(t->rect(), FALSE); + repaint(t->rect(), false); } } } @@ -915,16 +915,16 @@ void TQTabBar::setCurrentTab( TQTab * tab ) d->focus = tab->id; - setMicroFocusHint( tab->rect().x(), tab->rect().y(), tab->rect().width(), tab->rect().height(), FALSE ); + setMicroFocusHint( tab->rect().x(), tab->rect().y(), tab->rect().width(), tab->rect().height(), false ); if ( tab->r.intersects( r ) ) { - repaint( r.unite( tab->r ), FALSE ); + repaint( r.unite( tab->r ), false ); } else { #ifdef TQ_WS_MACX update(); #else - repaint( r, FALSE ); - repaint( tab->r, FALSE ); + repaint( r, false ); + repaint( tab->r, false ); #endif } makeVisible( tab ); @@ -1219,7 +1219,7 @@ void TQTabBar::focusInEvent( TQFocusEvent * ) { TQTab *t = tab( d->focus ); if ( t ) - repaint( t->r, FALSE ); + repaint( t->r, false ); } /*! @@ -1229,7 +1229,7 @@ void TQTabBar::focusOutEvent( TQFocusEvent * ) { TQTab *t = tab( d->focus ); if ( t ) - repaint( t->r, FALSE ); + repaint( t->r, false ); } /*! @@ -1271,7 +1271,7 @@ void TQTabBar::makeVisible( TQTab* tab ) return; bool bs = signalsBlocked(); - blockSignals(TRUE); + blockSignals(true); layoutTabs(); blockSignals(bs); @@ -1293,9 +1293,9 @@ void TQTabBar::makeVisible( TQTab* tab ) // Make sure disabled buttons pop up again if ( !d->leftB->isEnabled() && d->leftB->isDown() ) - d->leftB->setDown( FALSE ); + d->leftB->setDown( false ); if ( !d->rightB->isEnabled() && d->rightB->isDown() ) - d->rightB->setDown( FALSE ); + d->rightB->setDown( false ); update(); emit layoutChanged(); @@ -1304,7 +1304,7 @@ void TQTabBar::makeVisible( TQTab* tab ) void TQTabBar::updateArrowButtons() { if (lstatic->isEmpty()) { - d->scrolls = FALSE; + d->scrolls = false; } else { d->scrolls = (lstatic->last()->r.right() - lstatic->first()->r.left() > width()); } @@ -1385,7 +1385,7 @@ void TQTab::setText( const TQString& text ) tb->d->a->insertItem( p, id ); #endif tb->layoutTabs(); - tb->repaint(FALSE); + tb->repaint(false); #if defined(QT_ACCESSIBILITY_SUPPORT) TQAccessible::updateAccessibility( tb, tb->indexOf(id)+1, TQAccessible::NameChanged ); |
