summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@pelagicore.com>2019-06-25 11:05:52 +0200
committerDominik Holland <dominik.holland@pelagicore.com>2019-06-25 11:05:52 +0200
commit960659f850a6643e6694898582f69c9e521a3f60 (patch)
tree46c6aa86efb4a2bbe30f202b94149b9669282b29 /examples
parentd935a744982d634c0538661eb48da88aec142ee7 (diff)
downloadqtivi-960659f850a6643e6694898582f69c9e521a3f60.tar.gz
Use simulation backends for our QtIvi examples
Because we introduced a production backend based on QtRO, this backend is used by default, but as no server is running it can't connect it and shows some errors. To not over complicate things we now use the simulation backend for those examples and add a small note to the example documentation Change-Id: I706d449e7e84f70a560aaa4f95baa86bb2682448 Fixes: AUTOSUITE-1057 Reviewed-by: Vladimir Minenko <vladimir.minenko@pelagicore.com> Reviewed-by: Kavindra Palaraja <kpalaraja@luxoft.com> Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/ivimedia/mediaplayer/main.qml1
-rw-r--r--examples/ivivehiclefunctions/climate_qml/main.qml2
-rw-r--r--examples/ivivehiclefunctions/climate_widget/mainwindow.cpp1
-rw-r--r--examples/ivivehiclefunctions/window_qml/main.qml2
4 files changed, 4 insertions, 2 deletions
diff --git a/examples/ivimedia/mediaplayer/main.qml b/examples/ivimedia/mediaplayer/main.qml
index 91ccc3e..c78b236 100644
--- a/examples/ivimedia/mediaplayer/main.qml
+++ b/examples/ivimedia/mediaplayer/main.qml
@@ -65,6 +65,7 @@ ApplicationWindow {
MediaPlayer {
id: mediaPlayer
+ discoveryMode: MediaPlayer.LoadOnlySimulationBackends
}
SplitView {
diff --git a/examples/ivivehiclefunctions/climate_qml/main.qml b/examples/ivivehiclefunctions/climate_qml/main.qml
index 75d36ed..1aba4c9 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.AutoDiscovery
+ discoveryMode: ClimateControl.LoadOnlySimulationBackends
}
//![1]
diff --git a/examples/ivivehiclefunctions/climate_widget/mainwindow.cpp b/examples/ivivehiclefunctions/climate_widget/mainwindow.cpp
index ab8504a..a6d1503 100644
--- a/examples/ivivehiclefunctions/climate_widget/mainwindow.cpp
+++ b/examples/ivivehiclefunctions/climate_widget/mainwindow.cpp
@@ -73,6 +73,7 @@ MainWindow::MainWindow(QWidget *parent) :
//![1]
m_climateControl = new QIviClimateControl(QString(), this);
+ m_climateControl->setDiscoveryMode(QIviAbstractFeature::LoadOnlySimulationBackends);
m_climateControl->startAutoDiscovery();
if (!m_climateControl->isValid())
diff --git a/examples/ivivehiclefunctions/window_qml/main.qml b/examples/ivivehiclefunctions/window_qml/main.qml
index 5679044..c9fb2a1 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.AutoDiscovery
+ discoveryMode: WindowControl.LoadOnlySimulationBackends
}
ColumnLayout {