summaryrefslogtreecommitdiffstats
path: root/src/widgets/graphicsview/qgraphicslinearlayout.cpp
diff options
context:
space:
mode:
authorJan Arve Saether <jan-arve.saether@digia.com>2014-01-02 17:44:34 +0100
committerJan Arve Sæther <jan-arve.saether@theqtcompany.com>2014-12-01 14:37:02 +0100
commit7cea5949ca5c23a840978dcb80014085e467e9eb (patch)
tree289931e6189ed5b4f436f7a5cfd5a0da56cdbd07 /src/widgets/graphicsview/qgraphicslinearlayout.cpp
parent9431321c653e4f387d7d27c410d22aabb2d042ef (diff)
Don't rely on hasChanged() in ensureGeometries
It can be removed now because we now have a better caching mechanism than before. It should therefore not be needed anymore. Since nothing else calls hasChanged, we can finally get rid of it. This simplifies the code and enables us to further improvements to the code. Change-Id: I51afe5a97311e3e361ae8b491ecbcd21bbedacd1 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/widgets/graphicsview/qgraphicslinearlayout.cpp')
-rw-r--r--src/widgets/graphicsview/qgraphicslinearlayout.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/widgets/graphicsview/qgraphicslinearlayout.cpp b/src/widgets/graphicsview/qgraphicslinearlayout.cpp
index cad049c30a..baf68d6eef 100644
--- a/src/widgets/graphicsview/qgraphicslinearlayout.cpp
+++ b/src/widgets/graphicsview/qgraphicslinearlayout.cpp
@@ -173,7 +173,6 @@ QGraphicsLayoutStyleInfo *QGraphicsLinearLayoutPrivate::styleInfo() const
{
if (!m_styleInfo)
m_styleInfo = new QGraphicsLayoutStyleInfo(this);
- m_styleInfo->updateChanged(QAbstractLayoutStyleInfo::Unknown);
return m_styleInfo;
}