summaryrefslogtreecommitdiffstats
path: root/src/gui/itemviews/qheaderview.cpp
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-08-17 11:48:51 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-08-17 11:49:14 (GMT)
commit3d50220423b96a84f1ca4c0f5ef9246345aad359 (patch)
tree82d66d5da9ae7820abd04577fe6a93a983a5277b /src/gui/itemviews/qheaderview.cpp
parent025a7395153c3708e2964cfd93957532b19ae04f (diff)
downloadQt-3d50220423b96a84f1ca4c0f5ef9246345aad359.zip
Qt-3d50220423b96a84f1ca4c0f5ef9246345aad359.tar.gz
Qt-3d50220423b96a84f1ca4c0f5ef9246345aad359.tar.bz2
Fix coverity warnings
Diffstat (limited to 'src/gui/itemviews/qheaderview.cpp')
-rw-r--r--src/gui/itemviews/qheaderview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/itemviews/qheaderview.cpp b/src/gui/itemviews/qheaderview.cpp
index 633dd53..96df758 100644
--- a/src/gui/itemviews/qheaderview.cpp
+++ b/src/gui/itemviews/qheaderview.cpp
@@ -2615,7 +2615,7 @@ void QHeaderView::dataChanged(const QModelIndex &topLeft, const QModelIndex &bot
int first = orientation() == Qt::Horizontal ? topLeft.column() : topLeft.row();
int last = orientation() == Qt::Horizontal ? bottomRight.column() : bottomRight.row();
for (int i = first; i <= last && !resizeRequired; ++i)
- resizeRequired = (resizeRequired && resizeMode(i));
+ resizeRequired = (resizeMode(i) == ResizeToContents);
if (resizeRequired)
d->doDelayedResizeSections();
}