summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@pelagicore.com>2015-03-27 09:12:07 +0100
committerDominik Holland <dominik.holland@pelagicore.com>2015-03-27 09:45:23 +0100
commitf1b9371f47aaeda9d189db6e80db9f1141619427 (patch)
treef3a7b74661a99fe0c52de816fd37d5178953ae08 /examples
parent12a8bec7064e4ae61d0b21f93153fa3cfc00f148 (diff)
downloadqtivi-f1b9371f47aaeda9d189db6e80db9f1141619427.tar.gz
Introduced a isValid property for AbstractFeature
Changed the examples to use it
Diffstat (limited to 'examples')
-rw-r--r--examples/vehiclefunctions/climate_qml/main.qml2
-rw-r--r--examples/vehiclefunctions/climate_widget/mainwindow.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/vehiclefunctions/climate_qml/main.qml b/examples/vehiclefunctions/climate_qml/main.qml
index b1274cd..302eadd 100644
--- a/examples/vehiclefunctions/climate_qml/main.qml
+++ b/examples/vehiclefunctions/climate_qml/main.qml
@@ -126,7 +126,7 @@ ApplicationWindow {
}
Component.onCompleted: {
- if (climateControl.serviceObject === null)
+ if (!climateControl.isValid)
messageDialog.open()
}
}
diff --git a/examples/vehiclefunctions/climate_widget/mainwindow.cpp b/examples/vehiclefunctions/climate_widget/mainwindow.cpp
index 80c8915..8246a77 100644
--- a/examples/vehiclefunctions/climate_widget/mainwindow.cpp
+++ b/examples/vehiclefunctions/climate_widget/mainwindow.cpp
@@ -21,7 +21,7 @@ MainWindow::MainWindow(QWidget *parent) :
m_climateControl = new QtIVIClimateControl(this);
m_climateControl->startAutoDiscovery();
- if (!m_climateControl->serviceObject())
+ if (!m_climateControl->isValid())
QMessageBox::critical(this, "Auto Discovery Failed !", "No Climate Backend available");
setupUI();