aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickpathitem/tst_qquickpathitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qquickpathitem/tst_qquickpathitem.cpp')
-rw-r--r--tests/auto/quick/qquickpathitem/tst_qquickpathitem.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/auto/quick/qquickpathitem/tst_qquickpathitem.cpp b/tests/auto/quick/qquickpathitem/tst_qquickpathitem.cpp
index d18df11c96..230d82a864 100644
--- a/tests/auto/quick/qquickpathitem/tst_qquickpathitem.cpp
+++ b/tests/auto/quick/qquickpathitem/tst_qquickpathitem.cpp
@@ -33,7 +33,7 @@
#include <QtQml/qqmlcontext.h>
#include <QtQml/qqmlexpression.h>
#include <QtQml/qqmlincubator.h>
-#include <QtQuick/private/qquickpathitem_p.h>
+#include "../../../../src/imports/pathitem/qquickpathitem_p.h"
#include "../../shared/util.h"
#include "../shared/viewtestutil.h"
@@ -61,6 +61,13 @@ tst_QQuickPathItem::tst_QQuickPathItem()
{
// Force the software backend to get reliable rendering results regardless of the hw and drivers.
QQuickWindow::setSceneGraphBackend(QSGRendererInterface::Software);
+
+ const char *uri = "tst_qquickpathitem";
+ qmlRegisterType<QQuickPathItem>(uri, 1, 0, "PathItem");
+ qmlRegisterType<QQuickVisualPath>(uri, 1, 0, "VisualPath");
+ qmlRegisterType<QQuickPathGradientStop>(uri, 1, 0, "PathGradientStop");
+ qmlRegisterUncreatableType<QQuickPathGradient>(uri, 1, 0, "PathGradient", QQuickPathGradient::tr("PathGradient is an abstract base class"));
+ qmlRegisterType<QQuickPathLinearGradient>(uri, 1, 0, "PathLinearGradient");
}
void tst_QQuickPathItem::initValues()