summaryrefslogtreecommitdiffstats
path: root/src/widgets/qlistbox.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-07-28 15:51:58 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-07-28 15:51:58 -0500
commitfe7969ef886d7287fa959929ddd33fbad8407884 (patch)
tree589aacc109d27561a5188bb46bce27c78bad8f5b /src/widgets/qlistbox.cpp
parentdba8a853b65e5707e48450e5085e0ff0513b4203 (diff)
downloadtqt3-fe7969ef886d7287fa959929ddd33fbad8407884.tar.gz
tqt3-fe7969ef886d7287fa959929ddd33fbad8407884.zip
Automated update from Qt3
Diffstat (limited to 'src/widgets/qlistbox.cpp')
-rw-r--r--src/widgets/qlistbox.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/widgets/qlistbox.cpp b/src/widgets/qlistbox.cpp
index 4e26f005b..71f29fc78 100644
--- a/src/widgets/qlistbox.cpp
+++ b/src/widgets/qlistbox.cpp
@@ -2191,7 +2191,7 @@ void TQListBox::mouseReleaseEvent( TQMouseEvent *e )
}
TQListBoxItem * i = itemAt( e->pos() );
- bool emitClicked = d->mousePressColumn != -1 && d->mousePressRow != -1 || !d->pressedItem;
+ bool emitClicked = ( d->mousePressColumn != -1 && d->mousePressRow != -1 ) || !d->pressedItem;
emitClicked = emitClicked && d->pressedItem == i;
d->pressedItem = 0;
d->mousePressRow = -1;
@@ -2261,7 +2261,7 @@ void TQListBox::mouseMoveEvent( TQMouseEvent *e )
// move outside the listbox without having seen a press, discard
// it.
if ( !TQRect( 0, 0, visibleWidth(), visibleHeight() ).contains( e->pos() ) &&
- ( d->mousePressColumn < 0 && d->mousePressRow < 0 ||
+ ( (d->mousePressColumn < 0 && d->mousePressRow < 0) ||
(e->state() == NoButton && !d->pressedItem) ) )
return;
@@ -4647,7 +4647,7 @@ void TQListBox::selectRange( TQListBoxItem *from, TQListBoxItem *to, bool invert
}
} else {
bool sel = !i->s;
- if ( (bool)i->s != sel && sel && i->isSelectable() || !sel ) {
+ if ( ( (bool)i->s != sel && sel && i->isSelectable() ) || !sel ) {
i->s = sel;
changed = TRUE;
updateItem( i );