summaryrefslogtreecommitdiff
path: root/tests/auto/qgeomaneuver/tst_qgeomaneuver.h
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2022-08-30 15:07:08 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2022-09-01 11:56:47 +0200
commitda10ee9b67aaf0c9218c2b891efa06b323866470 (patch)
tree1ee258c51a87d04ce759c09d039bea00dfd0410c /tests/auto/qgeomaneuver/tst_qgeomaneuver.h
parent7b3531ec887fdd2ccdd26d904757a314aed6e352 (diff)
downloadqtlocation-da10ee9b67aaf0c9218c2b891efa06b323866470.tar.gz
Remove QDeclarativeGeoManeuver
Register the QGeoManeuver type directly as the RouteManeuver QML type, and use it in QDeclarativeGeoRouteSegment. The type is now uncreatable. It wasn't in Qt 5.15, but since there is no setter-API that is exposed to QML (QDeclarativeGeoRouteSegment::maneuver is a read-only property tagged as CONSTANT), there is no point in creating a RouteManeuver object in QML anyway. The QML tests can get a default-created QGeoManeuever from an empty route segment. Document the C++ properties via \property, move the QML type documentation into the qgeomaneuver.cpp file, and unify the language. Note: The QML type should be routeManeuver, as value types should start with a lower-case character. If we make that change, it will be in a separate, compatibility-breaking commit for all the value types. Pick-to: 6.2 Change-Id: I277e7011f2082e2da9e0141db9bad0a60a524c88 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/auto/qgeomaneuver/tst_qgeomaneuver.h')
-rw-r--r--tests/auto/qgeomaneuver/tst_qgeomaneuver.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/auto/qgeomaneuver/tst_qgeomaneuver.h b/tests/auto/qgeomaneuver/tst_qgeomaneuver.h
index 87168838..41c704e8 100644
--- a/tests/auto/qgeomaneuver/tst_qgeomaneuver.h
+++ b/tests/auto/qgeomaneuver/tst_qgeomaneuver.h
@@ -67,7 +67,6 @@ private Q_SLOTS:
};
Q_DECLARE_METATYPE( QList<double>);
-Q_DECLARE_METATYPE (QGeoManeuver::InstructionDirection);
#endif // TST_QGEOMANEUVER_H