summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/src/widgets/tqlistview.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-07-23 17:13:36 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-07-23 17:13:36 -0500
commitd3f7a9d6f1b8f6e24fb49aaa8caeaa7623ae48b5 (patch)
treebaeeba639393f46abab749f4700a250091c3cc16 /tqtinterface/qt4/src/widgets/tqlistview.cpp
parentd7be1694839bacae31e500ea9e36b3c13257ce28 (diff)
downloadexperimental-d3f7a9d6f1b8f6e24fb49aaa8caeaa7623ae48b5.tar.gz
experimental-d3f7a9d6f1b8f6e24fb49aaa8caeaa7623ae48b5.zip
Apply all Qt3.3.8d patches
NOTE: This will *likely* break compilation of TQt4 Please wait a few days for fixes to be committed as needed!
Diffstat (limited to 'tqtinterface/qt4/src/widgets/tqlistview.cpp')
-rw-r--r--tqtinterface/qt4/src/widgets/tqlistview.cpp27
1 files changed, 14 insertions, 13 deletions
diff --git a/tqtinterface/qt4/src/widgets/tqlistview.cpp b/tqtinterface/qt4/src/widgets/tqlistview.cpp
index bd706e9..46060c8 100644
--- a/tqtinterface/qt4/src/widgets/tqlistview.cpp
+++ b/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;
}