X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=HomeScreenSimulator%2Fsrc%2Fmainwindow.cpp;h=ffc44fe4eab0b4ea688745372e72ca2eb9aba1b9;hb=09f2f0036f122e49aa49e6c446d723850192a725;hp=272adfc51c5286947a5ac1f8183120c0baa18ee5;hpb=d19555c038f6f1f89f08f12c88908d84b32b1bbf;p=staging%2FHomeScreen.git diff --git a/HomeScreenSimulator/src/mainwindow.cpp b/HomeScreenSimulator/src/mainwindow.cpp index 272adfc..ffc44fe 100644 --- a/HomeScreenSimulator/src/mainwindow.cpp +++ b/HomeScreenSimulator/src/mainwindow.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016 Mentor Graphics Development (Deutschland) GmbH + * Copyright (C) 2016, 2017 Mentor Graphics Development (Deutschland) GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,7 +20,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), mp_ui(new Ui::MainWindow), - mp_dBusDayNightModeAdapter(0), + mp_dBusDayNightModeAdaptor(0), mp_dBusStatusBarProxy(0), mp_dBusPopupProxy(0), mp_dBusProximityProxy(0), @@ -32,7 +32,7 @@ MainWindow::MainWindow(QWidget *parent) : QDBusConnection dbus = QDBusConnection::sessionBus(); // publish dbus day night mode interface - mp_dBusDayNightModeAdapter = new DaynightmodeAdaptor((QObject*)this); + mp_dBusDayNightModeAdaptor = new DaynightmodeAdaptor((QObject*)this); dbus.registerService("org.agl.homescreen.simulator"); dbus.registerObject("/", this); @@ -72,9 +72,9 @@ MainWindow::~MainWindow() delete mp_dBusPopupProxy; delete mp_dBusStatusBarProxy; - if (0 == mp_dBusDayNightModeAdapter) + if (0 == mp_dBusDayNightModeAdaptor) { - delete mp_dBusDayNightModeAdapter; + delete mp_dBusDayNightModeAdaptor; } delete mp_ui; } @@ -177,8 +177,3 @@ void MainWindow::on_checkBox_ObjectDetected_clicked() { mp_dBusProximityProxy->setObjectDetected(Qt::Checked == mp_ui->checkBox_ObjectDetected->checkState()); } - -void MainWindow::on_pushButton_ToggleFullScreen_clicked() -{ - mp_dBusHomeScreenProxy->toggleFullScreen(); -}