summaryrefslogtreecommitdiffstats
path: root/experimental/tqtinterface/qt4/src/widgets/tqlistview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'experimental/tqtinterface/qt4/src/widgets/tqlistview.cpp')
-rw-r--r--experimental/tqtinterface/qt4/src/widgets/tqlistview.cpp27
1 files changed, 14 insertions, 13 deletions
diff --git a/experimental/tqtinterface/qt4/src/widgets/tqlistview.cpp b/experimental/tqtinterface/qt4/src/widgets/tqlistview.cpp
index bd706e917..46060c882 100644
--- a/experimental/tqtinterface/qt4/src/widgets/tqlistview.cpp
+++ b/experimental/tqtinterface/qt4/src/widgets/tqlistview.cpp
@@ -4569,6 +4569,7 @@ void TQListView::contentsMouseReleaseEventEx( TQMouseEvent * e )
}
emitClicked = emitClicked && d->pressedItem == i;
d->pressedItem = 0;
+ d->highlighted = 0;
if ( emitClicked ) {
if ( !i || ( i && i->isEnabled() ) ) {
@@ -7597,21 +7598,21 @@ TQListViewItemIterator::~TQListViewItemIterator()
TQListViewItemIterator &TQListViewItemIterator::operator++()
{
- if ( !curr )
- return *this;
+ do {
+ if ( !curr )
+ return *this;
- TQListViewItem *item = curr->firstChild();
- if ( !item ) {
- while ( (item = curr->nextSibling()) == 0 ) {
- curr = curr->tqparent();
- if ( curr == 0 )
- break;
+ TQListViewItem *item = curr->firstChild();
+ if ( !item ) {
+ while ( (item = curr->nextSibling()) == 0 ) {
+ curr = curr->tqparent();
+ if ( curr == 0 )
+ break;
+ }
}
- }
- curr = item;
- // if the next one doesn't match the flags we try one more ahead
- if ( curr && !matchesFlags( curr ) )
- ++( *this );
+ curr = item;
+ // if the next one doesn't match the flags we try one more ahead
+ } while ( curr && !matchesFlags( curr ) );
return *this;
}