diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-08-19 17:37:43 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-08-19 17:37:43 (GMT) |
commit | 6fc62c47739cedb5f3bc8de3004f68b62de991f2 (patch) | |
tree | 00edc3ad4c8fe64f40ab09550e039e52c05b5d09 /src/gui/itemviews | |
parent | 10524a2d304010314fd48dd8131a600210de8a82 (diff) | |
parent | 6e24bef57683b26f7cc1c4cddacace413d181d00 (diff) | |
download | Qt-6fc62c47739cedb5f3bc8de3004f68b62de991f2.zip Qt-6fc62c47739cedb5f3bc8de3004f68b62de991f2.tar.gz Qt-6fc62c47739cedb5f3bc8de3004f68b62de991f2.tar.bz2 |
Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-2:
Make the QItemSelectionRange and QItemSelectionModel ensure that the model is correct.
Fixed autotest compilation issue on solaris
Fixed build issue on Solaris
Diffstat (limited to 'src/gui/itemviews')
-rw-r--r-- | src/gui/itemviews/qitemselectionmodel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/itemviews/qitemselectionmodel.cpp b/src/gui/itemviews/qitemselectionmodel.cpp index 4979db6..7156b87 100644 --- a/src/gui/itemviews/qitemselectionmodel.cpp +++ b/src/gui/itemviews/qitemselectionmodel.cpp @@ -212,6 +212,7 @@ bool QItemSelectionRange::intersects(const QItemSelectionRange &other) const { return (isValid() && other.isValid() && parent() == other.parent() + && model() == other.model() && ((top() <= other.top() && bottom() >= other.top()) || (top() >= other.top() && top() <= other.bottom())) && ((left() <= other.left() && right() >= other.left()) @@ -508,7 +509,7 @@ void QItemSelection::merge(const QItemSelection &other, QItemSelectionModel::Sel void QItemSelection::split(const QItemSelectionRange &range, const QItemSelectionRange &other, QItemSelection *result) { - if (range.parent() != other.parent()) + if (range.parent() != other.parent() || range.model() != other.model()) return; QModelIndex parent = other.parent(); |