summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Solovev <ivan.solovev@qt.io>2023-09-19 10:46:52 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-10-06 12:25:28 +0000
commitb507b0be08136c5a64d85724861e947687514a03 (patch)
tree36a3a4bb1126c3922e4d8ddd9debbeb25917ce6d
parentf81f799da7b0a0bc94ef99c3a7aa45cc30834d73 (diff)
Adjust QGeoSatelliteInfoSource bindable property unit tests
... to match the new signatures of the helper test functions. After adjustments, the tests do not reveal any binding loops, so no other actions are needed. Fixes: QTBUG-116541 Pick-to: 6.5 Change-Id: Ib3839fc54262c5477e340dbaee3b1bc96ef9ddb8 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> (cherry picked from commit 9325fefcf57c6aacf08d3010faff0d5cb81ebd63) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--tests/auto/qgeosatelliteinfosource/testqgeosatelliteinfosource.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/auto/qgeosatelliteinfosource/testqgeosatelliteinfosource.cpp b/tests/auto/qgeosatelliteinfosource/testqgeosatelliteinfosource.cpp
index 08a0f043..5baaef1a 100644
--- a/tests/auto/qgeosatelliteinfosource/testqgeosatelliteinfosource.cpp
+++ b/tests/auto/qgeosatelliteinfosource/testqgeosatelliteinfosource.cpp
@@ -734,8 +734,12 @@ void TestQGeoSatelliteInfoSource::bindings()
{
CHECK_SOURCE_VALID;
- QTestPrivate::testReadWritePropertyBasics<QGeoSatelliteInfoSource, int>(*m_source, 1000, 2000,
- "updateInterval");
+ QTestPrivate::testReadWritePropertyBasics<QGeoSatelliteInfoSource, int>(
+ *m_source, 1000, 2000, "updateInterval",
+ []() {
+ return std::unique_ptr<QGeoSatelliteInfoSource>(
+ QGeoSatelliteInfoSource::createDefaultSource(nullptr));
+ });
}
#include "testqgeosatelliteinfosource.moc"