diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2010-04-12 07:18:10 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2010-04-12 07:21:08 (GMT) |
commit | d45c0d3930e295e9798f9172fa0f151044f7036b (patch) | |
tree | 70dce24226897ef66075742bab77539799c5df9c /src/gui/itemviews/qitemselectionmodel.h | |
parent | 757b9bf63dedbc33205f482c80f6843b738aa389 (diff) | |
download | Qt-d45c0d3930e295e9798f9172fa0f151044f7036b.zip Qt-d45c0d3930e295e9798f9172fa0f151044f7036b.tar.gz Qt-d45c0d3930e295e9798f9172fa0f151044f7036b.tar.bz2 |
Make sure the selectionChanged signal is not called too much
It could happen that it was called with empty selectionrange
Now we check to see if the selection ranges are empty
Task-number: QTBUG-9507
Reviewed-by: gabi
Diffstat (limited to 'src/gui/itemviews/qitemselectionmodel.h')
-rw-r--r-- | src/gui/itemviews/qitemselectionmodel.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/itemviews/qitemselectionmodel.h b/src/gui/itemviews/qitemselectionmodel.h index 9980d0f..436514f 100644 --- a/src/gui/itemviews/qitemselectionmodel.h +++ b/src/gui/itemviews/qitemselectionmodel.h @@ -108,6 +108,8 @@ public: && top() <= bottom() && left() <= right()); } + bool isEmpty() const; + QModelIndexList indexes() const; private: |