summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/vehiclefunctions/climate_widget/mainwindow.cpp15
-rw-r--r--examples/vehiclefunctions/climate_widget/mainwindow.h2
2 files changed, 5 insertions, 12 deletions
diff --git a/examples/vehiclefunctions/climate_widget/mainwindow.cpp b/examples/vehiclefunctions/climate_widget/mainwindow.cpp
index 93771bb..a96fcf8 100644
--- a/examples/vehiclefunctions/climate_widget/mainwindow.cpp
+++ b/examples/vehiclefunctions/climate_widget/mainwindow.cpp
@@ -53,19 +53,9 @@ MainWindow::MainWindow(QWidget *parent) :
if (!m_climateControl->isValid())
QMessageBox::critical(this, tr("Auto Discovery Failed !"), tr("No Climate Backend available"));
-
- setupUI();
//![1]
-}
-
-MainWindow::~MainWindow()
-{
- delete ui;
-}
//![2]
-void MainWindow::setupUI()
-{
//Air Flow Direction
setupFlowDirectionRadioButtons(m_climateControl->airflowDirection());
setupFlowDirectionAttribute(m_climateControl->airflowDirectionAttribute());
@@ -108,6 +98,11 @@ void MainWindow::setupUI()
}
//![2]
+MainWindow::~MainWindow()
+{
+ delete ui;
+}
+
void MainWindow::onAirRecirculationAttributeChanged(const QtIVIPropertyAttribute<bool> & attribute)
{
ui->cb_airRecirculation->setEnabled(attribute.isAvailable());
diff --git a/examples/vehiclefunctions/climate_widget/mainwindow.h b/examples/vehiclefunctions/climate_widget/mainwindow.h
index 940c1cb..6cfd39d 100644
--- a/examples/vehiclefunctions/climate_widget/mainwindow.h
+++ b/examples/vehiclefunctions/climate_widget/mainwindow.h
@@ -50,8 +50,6 @@ public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
- void setupUI();
-
private slots:
void onAirRecirculationAttributeChanged(const QtIVIPropertyAttribute<bool> &attribute);
void onHeaterAttributeChanged(const QtIVIPropertyAttribute<bool> &attribute);