Fix ubsan build of qtdeclarative
Avoid using private classes when not exported Pick-to: 6.7 Change-Id: Ia2dd8019719739a2cb66a0770f0156ab711a2dd8 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
This commit is contained in:
parent
986d5395bd
commit
385a24c1b2
|
@ -394,7 +394,7 @@ void QQuickViewTestUtils::StressTestModel::updateModel()
|
|||
}
|
||||
}
|
||||
|
||||
#if QT_CONFIG(quick_itemview)
|
||||
#if QT_CONFIG(quick_itemview) && defined(QT_BUILD_INTERNAL)
|
||||
bool QQuickViewTestUtils::testVisibleItems(const QQuickItemViewPrivate *priv, bool *nonUnique, FxViewItem **failItem, int *expectedIdx)
|
||||
{
|
||||
QHash<QQuickItem*, int> uniqueItems;
|
||||
|
|
|
@ -168,7 +168,7 @@ namespace QQuickViewTestUtils
|
|||
int m_rowCount;
|
||||
};
|
||||
|
||||
#if QT_CONFIG(quick_itemview)
|
||||
#if QT_CONFIG(quick_itemview) && defined(QT_BUILD_INTERNAL)
|
||||
[[nodiscard]] bool testVisibleItems(const QQuickItemViewPrivate *priv,
|
||||
bool *nonUnique, FxViewItem **failItem, int *expectedIdx);
|
||||
#endif
|
||||
|
|
|
@ -308,6 +308,7 @@ void tst_qquickiconlabel::colorChanges()
|
|||
|
||||
void tst_qquickiconlabel::iconSourceContext()
|
||||
{
|
||||
#if defined(QT_BUILD_INTERNAL)
|
||||
QQmlEngine engine;
|
||||
QQmlComponent component(&engine, testFileUrl("iconSourceContext.qml"));
|
||||
QVERIFY2(component.isReady(), qPrintable(component.errorString()));
|
||||
|
@ -337,7 +338,7 @@ void tst_qquickiconlabel::iconSourceContext()
|
|||
= static_cast<QQuickImagePrivate *>(QQuickItemPrivate::get(image));
|
||||
QCOMPARE(imagePrivate->pix.url(), testFileUrl("a.png"));
|
||||
}
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
QTEST_MAIN(tst_qquickiconlabel)
|
||||
|
|
Loading…
Reference in New Issue