diff options
author | Alexis Menard <alexis.menard@trolltech.com> | 2009-03-03 16:08:30 (GMT) |
---|---|---|
committer | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-04-06 11:49:40 (GMT) |
commit | d74f1a91b05b943c1a8ae7847de6ee50b2093b89 (patch) | |
tree | cb3e96ad861063e4912d9b20555fc6c44fcef59f /tests/benchmarks/qgraphicswidget/qgraphicswidget.pro | |
parent | b67dffcccea9166918ac93c281d87fd5eb3baf84 (diff) | |
download | Qt-d74f1a91b05b943c1a8ae7847de6ee50b2093b89.zip Qt-d74f1a91b05b943c1a8ae7847de6ee50b2093b89.tar.gz Qt-d74f1a91b05b943c1a8ae7847de6ee50b2093b89.tar.bz2 |
Fixes: Be a bit more smarter when calling setGeometry from itemChange
RevBy: bnilsen
AutoTest: Bench
Details : if we come from setPosHelper (so itemChange) we don't need to do all the stuff regarding the size in setGeometry because the size doesn't change.
I remove two calls to fullUpdateHelper and update() because prepareGeometryChange already call updateHelper and setPosHelper call fullUpdaterHelper too so we don't need to call them inside setGeometry.
We can only call prepareGeometryChange only if we don't come from setPos.
Diffstat (limited to 'tests/benchmarks/qgraphicswidget/qgraphicswidget.pro')
-rw-r--r-- | tests/benchmarks/qgraphicswidget/qgraphicswidget.pro | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/benchmarks/qgraphicswidget/qgraphicswidget.pro b/tests/benchmarks/qgraphicswidget/qgraphicswidget.pro new file mode 100644 index 0000000..f1ec54e --- /dev/null +++ b/tests/benchmarks/qgraphicswidget/qgraphicswidget.pro @@ -0,0 +1,6 @@ +load(qttest_p4) +TEMPLATE = app +TARGET = tst_qgraphicswidget +TEMPLATE = app +# Input +SOURCES += tst_qgraphicswidget.cpp |