summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsanchorlayout_p.h
diff options
context:
space:
mode:
authorJan-Arve Sæther <jan-arve.saether@nokia.com>2009-10-16 09:56:08 (GMT)
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2009-10-16 09:59:05 (GMT)
commit7e5724b7d4632899af2e84856dd7d6f2a1771ee0 (patch)
tree713ba6c4f3769c4e26f0fdb384d2184c58d26fdd /src/gui/graphicsview/qgraphicsanchorlayout_p.h
parentbdc951eb87e0b1aa752d3ec750cfd837714bd8b7 (diff)
downloadQt-7e5724b7d4632899af2e84856dd7d6f2a1771ee0.zip
Qt-7e5724b7d4632899af2e84856dd7d6f2a1771ee0.tar.gz
Qt-7e5724b7d4632899af2e84856dd7d6f2a1771ee0.tar.bz2
Make sure that the anchor layout autotests pass in release configuration
The problem was that lastCalculationUsedSimplex was only compiled in debug mode. The autotests run in release, so it did not compile. Reviewed-by: alexis
Diffstat (limited to 'src/gui/graphicsview/qgraphicsanchorlayout_p.h')
-rw-r--r--src/gui/graphicsview/qgraphicsanchorlayout_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsanchorlayout_p.h b/src/gui/graphicsview/qgraphicsanchorlayout_p.h
index d96a035..3a23677 100644
--- a/src/gui/graphicsview/qgraphicsanchorlayout_p.h
+++ b/src/gui/graphicsview/qgraphicsanchorlayout_p.h
@@ -523,7 +523,7 @@ public:
bool graphHasConflicts[2];
QSet<QGraphicsLayoutItem *> m_floatItems[2];
-#ifdef QT_DEBUG
+#if defined(QT_DEBUG) || defined(Q_AUTOTEST_EXPORT)
bool lastCalculationUsedSimplex[2];
#endif