diff options
author | Dominik Holland <dominik.holland@qt.io> | 2020-11-23 15:50:58 +0100 |
---|---|---|
committer | Dominik Holland <dominik.holland@qt.io> | 2020-12-02 10:46:42 +0100 |
commit | 5c68d60f3178c35e353c713611d7c19adc217a6d (patch) | |
tree | 6d1fe9ace27b36db02042ce323c3115ce24b304e | |
parent | b29f6c479848391c137e927189b523e3c8f7f548 (diff) |
Use the DiscoveryMode enum correctly in all our QML files
Similar to C++ we need to use the Type where the enum is defined in
for assignments.
Change-Id: Id491d591d97915452ebcff8a7f47360be4e2340a
Reviewed-by: Robert Griebl <robert.griebl@qt.io>
4 files changed, 4 insertions, 4 deletions
diff --git a/examples/ivimedia/mediaplayer/main.qml b/examples/ivimedia/mediaplayer/main.qml index c78b236..1abe5b3 100644 --- a/examples/ivimedia/mediaplayer/main.qml +++ b/examples/ivimedia/mediaplayer/main.qml @@ -65,7 +65,7 @@ ApplicationWindow { MediaPlayer { id: mediaPlayer - discoveryMode: MediaPlayer.LoadOnlySimulationBackends + discoveryMode: AbstractFeature.LoadOnlySimulationBackends } SplitView { diff --git a/examples/ivivehiclefunctions/climate_qml/main.qml b/examples/ivivehiclefunctions/climate_qml/main.qml index 1aba4c9..737b99e 100644 --- a/examples/ivivehiclefunctions/climate_qml/main.qml +++ b/examples/ivivehiclefunctions/climate_qml/main.qml @@ -68,7 +68,7 @@ ApplicationWindow { //![1] ClimateControl { id: climateControl - discoveryMode: ClimateControl.LoadOnlySimulationBackends + discoveryMode: AbstractFeature.LoadOnlySimulationBackends } //![1] diff --git a/examples/ivivehiclefunctions/window_qml/main.qml b/examples/ivivehiclefunctions/window_qml/main.qml index c9fb2a1..f719047 100644 --- a/examples/ivivehiclefunctions/window_qml/main.qml +++ b/examples/ivivehiclefunctions/window_qml/main.qml @@ -65,7 +65,7 @@ ApplicationWindow { WindowControl { id: windowControl - discoveryMode: WindowControl.LoadOnlySimulationBackends + discoveryMode: AbstractFeature.LoadOnlySimulationBackends } ColumnLayout { diff --git a/tests/auto/core/qiviabstractfeature/testdata/autodiscovery.qml b/tests/auto/core/qiviabstractfeature/testdata/autodiscovery.qml index 73ca1b5..4447bb1 100644 --- a/tests/auto/core/qiviabstractfeature/testdata/autodiscovery.qml +++ b/tests/auto/core/qiviabstractfeature/testdata/autodiscovery.qml @@ -40,7 +40,7 @@ Item { TestFeature { id: noAutoItem objectName: "autoDiscoveryDisabled" - discoveryMode: TestFeature.NoAutoDiscovery + discoveryMode: AbstractFeature.NoAutoDiscovery } function discover() { |