|
|
@ -3872,11 +3872,11 @@ void TQIconView::selectAll( bool select )
|
|
|
|
rr = rr.unite( item->rect() );
|
|
|
|
rr = rr.unite( item->rect() );
|
|
|
|
changed = TRUE;
|
|
|
|
changed = TRUE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
}
|
|
|
|
if ( FALSE != item->isSelected() ) {
|
|
|
|
else {
|
|
|
|
item->setSelected( FALSE, TRUE );
|
|
|
|
if ( FALSE != item->isSelected() ) {
|
|
|
|
changed = TRUE;
|
|
|
|
item->setSelected( FALSE, TRUE );
|
|
|
|
}
|
|
|
|
changed = TRUE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -3906,8 +3906,16 @@ void TQIconView::invertSelection()
|
|
|
|
bool b = signalsBlocked();
|
|
|
|
bool b = signalsBlocked();
|
|
|
|
blockSignals( TRUE );
|
|
|
|
blockSignals( TRUE );
|
|
|
|
TQIconViewItem *item = d->firstItem;
|
|
|
|
TQIconViewItem *item = d->firstItem;
|
|
|
|
for ( ; item; item = item->next )
|
|
|
|
for ( ; item; item = item->next ) {
|
|
|
|
item->setSelected( !item->isSelected(), TRUE );
|
|
|
|
if (item->isVisible()) {
|
|
|
|
|
|
|
|
item->setSelected( !item->isSelected(), TRUE );
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
if ( FALSE != item->isSelected() ) {
|
|
|
|
|
|
|
|
item->setSelected( FALSE, TRUE );
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
blockSignals( b );
|
|
|
|
blockSignals( b );
|
|
|
|
emit selectionChanged();
|
|
|
|
emit selectionChanged();
|
|
|
|
}
|
|
|
|
}
|
|
|
|