summaryrefslogtreecommitdiffstats
path: root/tdeui/tdelistview.cpp
diff options
context:
space:
mode:
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 cf986b538..0d46f49be 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() ) {