summaryrefslogtreecommitdiffstats
path: root/tdeui/tdelistview.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-05-13 09:38:34 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-05-15 20:09:38 +0900
commitca275a6386d2ea3b95129ce78695865a3523153b (patch)
tree928f442cdcd715bb0ece379b605cfb4a7ef1c035 /tdeui/tdelistview.cpp
parent3afb7eb4e984562dff3addf2c6399c19262497f0 (diff)
downloadtdelibs-ca275a63.tar.gz
tdelibs-ca275a63.zip
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit ad58630b34fc61754c763cf951004ef27e38d33d)
Diffstat (limited to 'tdeui/tdelistview.cpp')
-rw-r--r--tdeui/tdelistview.cpp24
1 files changed, 9 insertions, 15 deletions
diff --git a/tdeui/tdelistview.cpp b/tdeui/tdelistview.cpp
index 868be813d..a18d711e9 100644
--- a/tdeui/tdelistview.cpp
+++ b/tdeui/tdelistview.cpp
@@ -2569,7 +2569,7 @@ void TDEListViewItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column
}
/*!
- If \a select is TRUE, all the items get selected; otherwise all
+ If \a select is true, all the items get selected; otherwise all
the items get unselected. This only works in the selection modes \c
Multi and \c Extended. In \c Single and \c NoSelection mode the
selection of the current item is just set to \a select.
@@ -2579,25 +2579,19 @@ void TDEListView::selectAll( bool select )
{
if ( ((SelectionModeExt)selectionMode() == Multi) || ((SelectionModeExt)selectionMode() == Extended) ) {
bool b = signalsBlocked();
- blockSignals( TRUE );
- bool anything = FALSE;
+ blockSignals( true );
+ bool anything = false;
TQListViewItemIterator it( this );
while ( it.current() ) {
TQListViewItem *i = it.current();
- if ( select == TRUE ) {
- if ( (bool)i->isVisible() == TRUE ) {
- i->setSelected( TRUE );
- anything = TRUE;
- }
- if ( (bool)i->isVisible() == FALSE ) {
- i->setSelected( FALSE );
- anything = TRUE;
- }
+ if ( select ) {
+ i->setSelected( i->isVisible() );
+ anything = true;
}
else {
- if ( (bool)i->isSelected() != select ) {
+ if ( i->isSelected() != select ) {
i->setSelected( select );
- anything = TRUE;
+ anything = true;
}
}
++it;
@@ -2605,7 +2599,7 @@ void TDEListView::selectAll( bool select )
blockSignals( b );
if ( anything ) {
emit selectionChanged();
-// d->useDoubleBuffer = TRUE;
+// d->useDoubleBuffer = true;
triggerUpdate();
}
} else if ( currentItem() ) {