QGraphicsAnchorLayout: Fix invalid use of Q_AUTOTEST_EXPORT
The Q_AUTOTEST_EXPORT is defined in all cases. So usage as #if defined(Q_AUTOTEST_EXPORT) was wrong. Change-Id: Ia1c1526ad08fdfa35ca773d7c62f8bbba39a6d38 Reviewed-by: Marc Mutz <marc.mutz@kdab.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
This commit is contained in:
parent
bf76405afc
commit
b9e4206726
@ -2090,7 +2090,7 @@ QList<AnchorData *> getVariables(const QList<QSimplexConstraint *> &constraints)
|
||||
void QGraphicsAnchorLayoutPrivate::calculateGraphs(
|
||||
QGraphicsAnchorLayoutPrivate::Orientation orientation)
|
||||
{
|
||||
#if defined(QT_DEBUG) || defined(Q_AUTOTEST_EXPORT)
|
||||
#if defined(QT_DEBUG) || defined(QT_BUILD_INTERNAL)
|
||||
lastCalculationUsedSimplex[orientation] = false;
|
||||
#endif
|
||||
|
||||
@ -2254,7 +2254,7 @@ bool QGraphicsAnchorLayoutPrivate::calculateTrunk(Orientation orientation, const
|
||||
sizeHints[orientation][Qt::MaximumSize] = ad->sizeAtMaximum;
|
||||
}
|
||||
|
||||
#if defined(QT_DEBUG) || defined(Q_AUTOTEST_EXPORT)
|
||||
#if defined(QT_DEBUG) || defined(QT_BUILD_INTERNAL)
|
||||
lastCalculationUsedSimplex[orientation] = needsSimplex;
|
||||
#endif
|
||||
|
||||
|
@ -568,7 +568,7 @@ public:
|
||||
bool graphHasConflicts[2];
|
||||
QSet<QGraphicsLayoutItem *> m_floatItems[2];
|
||||
|
||||
#if defined(QT_DEBUG) || defined(Q_AUTOTEST_EXPORT)
|
||||
#if defined(QT_DEBUG) || defined(QT_BUILD_INTERNAL)
|
||||
bool lastCalculationUsedSimplex[2];
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user