summaryrefslogtreecommitdiffstats
path: root/src/widgets/tqtoolbox.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-12-26 14:08:52 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-12-27 22:38:28 +0900
commit50326e196a9245af21604da7dc3a36eea52784ed (patch)
tree955f50c739379c59d3846c5c6ec25c8f5856fb91 /src/widgets/tqtoolbox.cpp
parent854c5d5c9cfd48a2d5a17366fb6805219eab4859 (diff)
downloadtqt-50326e196a9245af21604da7dc3a36eea52784ed.tar.gz
tqt-50326e196a9245af21604da7dc3a36eea52784ed.zip
Replace TRUE/FALSE with boolean values true/false - part 10
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/widgets/tqtoolbox.cpp')
-rw-r--r--src/widgets/tqtoolbox.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/widgets/tqtoolbox.cpp b/src/widgets/tqtoolbox.cpp
index e5b139035..d99033358 100644
--- a/src/widgets/tqtoolbox.cpp
+++ b/src/widgets/tqtoolbox.cpp
@@ -60,7 +60,7 @@ class TQToolBoxButton : public TQButton
{
public:
TQToolBoxButton( TQWidget *parent, const char *name )
- : TQButton( parent, name ), selected( FALSE )
+ : TQButton( parent, name ), selected( false )
{
setBackgroundMode(PaletteBackground);
setSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Minimum);
@@ -148,7 +148,7 @@ TQToolBoxPrivate::Page *TQToolBoxPrivate::page( int index )
void TQToolBoxPrivate::updateTabs()
{
TQToolBoxButton *lastButton = currentPage ? currentPage->button : 0;
- bool after = FALSE;
+ bool after = false;
for ( PageList::ConstIterator i = pageList.constBegin(); i != pageList.constEnd(); ++i ) {
if (after) {
(*i).button->setEraseColor((*i).widget->eraseColor());
@@ -211,7 +211,7 @@ void TQToolBoxButton::drawButton( TQPainter *p )
if ( selected && style().styleHint( TQStyle::SH_ToolBox_SelectedPageTitleBold ) ) {
TQFont f( p->font() );
- f.setBold( TRUE );
+ f.setBold( true );
p->setFont( f );
}
@@ -430,10 +430,10 @@ void TQToolBox::setCurrentItem( TQWidget *item )
if ( !c || d->currentPage == c )
return;
- c->button->setSelected( TRUE );
+ c->button->setSelected( true );
if ( d->currentPage ) {
d->currentPage->sv->hide();
- d->currentPage->button->setSelected(FALSE);
+ d->currentPage->button->setSelected(false);
}
d->currentPage = c;
d->currentPage->sv->show();
@@ -542,7 +542,7 @@ int TQToolBox::indexOf( TQWidget *item ) const
}
/*!
- If \a enabled is TRUE then the item at position \a index is enabled; otherwise item
+ If \a enabled is true then the item at position \a index is enabled; otherwise item
\a index is disabled.
*/
@@ -610,7 +610,7 @@ void TQToolBox::setItemToolTip( int index, const TQString &toolTip )
}
/*!
- Returns TRUE if the item at position \a index is enabled; otherwise returns FALSE.
+ Returns true if the item at position \a index is enabled; otherwise returns false.
*/
bool TQToolBox::isItemEnabled( int index ) const