diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-09-16 06:26:46 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-09-16 06:26:46 (GMT) |
commit | 633b4b0655bf47b6f5100ee9a6c2f692b0aeb081 (patch) | |
tree | d5deeb37b770f2fdff140c2f75a1f38a992da2be /src/declarative/fx/qfxloader.cpp | |
parent | d3b03a7d6c4ad023572d7099ee9f9ec3f0711d04 (diff) | |
download | Qt-633b4b0655bf47b6f5100ee9a6c2f692b0aeb081.zip Qt-633b4b0655bf47b6f5100ee9a6c2f692b0aeb081.tar.gz Qt-633b4b0655bf47b6f5100ee9a6c2f692b0aeb081.tar.bz2 |
Experiment with implicitWidth and implicitHeight functions.
Diffstat (limited to 'src/declarative/fx/qfxloader.cpp')
-rw-r--r-- | src/declarative/fx/qfxloader.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/declarative/fx/qfxloader.cpp b/src/declarative/fx/qfxloader.cpp index 668faa4..d0c2690 100644 --- a/src/declarative/fx/qfxloader.cpp +++ b/src/declarative/fx/qfxloader.cpp @@ -361,10 +361,8 @@ void QFxLoaderPrivate::_q_updateSize() return; switch (resizeMode) { case QFxLoader::SizeLoaderToItem: - if (!q->widthValid()) - q->setImplicitWidth(item->width()); - if (!q->heightValid()) - q->setImplicitHeight(item->height()); + q->setImplicitWidth(item->width()); + q->setImplicitHeight(item->height()); break; case QFxLoader::SizeItemToLoader: item->setWidth(q->width()); |