diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-06-08 12:47:33 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-06-08 12:48:58 (GMT) |
commit | 9281ea186212591e636437d30747e7efd6138af6 (patch) | |
tree | 2c40bc3b0b4be1e7cb66c1e3202affd61d5f80f7 /src | |
parent | eda070eb1f0e65366eaece43e5d86baf9fb8cd89 (diff) | |
download | Qt-9281ea186212591e636437d30747e7efd6138af6.zip Qt-9281ea186212591e636437d30747e7efd6138af6.tar.gz Qt-9281ea186212591e636437d30747e7efd6138af6.tar.bz2 |
Fixed ListView so that it is able to move items in negative space and
still paint them.
The autotest is included.
Task-number: 254449
Reviewed-by: ogoffart
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/itemviews/qlistview_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/itemviews/qlistview_p.h b/src/gui/itemviews/qlistview_p.h index 4568d8c..6514496 100644 --- a/src/gui/itemviews/qlistview_p.h +++ b/src/gui/itemviews/qlistview_p.h @@ -84,7 +84,7 @@ public: inline bool operator!=(const QListViewItem &other) const { return !(*this == other); } inline bool isValid() const - { return (x > -1) && (y > -1) && (w > 0) && (h > 0) && (indexHint > -1); } + { return rect().isValid() && (indexHint > -1); } inline void invalidate() { x = -1; y = -1; w = 0; h = 0; } inline void resize(const QSize &size) |