aboutsummaryrefslogtreecommitdiffstats
path: root/HomeScreenSimulator/src
diff options
context:
space:
mode:
Diffstat (limited to 'HomeScreenSimulator/src')
-rw-r--r--HomeScreenSimulator/src/main.cpp7
-rw-r--r--HomeScreenSimulator/src/mainwindow.cpp5
-rw-r--r--HomeScreenSimulator/src/mainwindow.h4
3 files changed, 9 insertions, 7 deletions
diff --git a/HomeScreenSimulator/src/main.cpp b/HomeScreenSimulator/src/main.cpp
index 921c4eb..5a165f8 100644
--- a/HomeScreenSimulator/src/main.cpp
+++ b/HomeScreenSimulator/src/main.cpp
@@ -36,16 +36,11 @@ int main(int argc, char *argv[])
QCoreApplication::setOrganizationDomain("LinuxFoundation");
QCoreApplication::setOrganizationName("AutomotiveGradeLinux");
QCoreApplication::setApplicationName("HomeScreenSimulator");
- QCoreApplication::setApplicationVersion("0.1.1");
+ QCoreApplication::setApplicationVersion("0.2.0");
MainWindow w;
w.show();
- // TODO: input handling not defined right now...
- /*InputEventDistributor *mp_inputEventDistributor;
- mp_inputEventDistributor = new InputEventDistributor();*/
-
-
// start input and system settings simulator on developer PCs
#ifdef __arm__
qDebug("Running on ARM architecture");
diff --git a/HomeScreenSimulator/src/mainwindow.cpp b/HomeScreenSimulator/src/mainwindow.cpp
index ffc5170..74c02d7 100644
--- a/HomeScreenSimulator/src/mainwindow.cpp
+++ b/HomeScreenSimulator/src/mainwindow.cpp
@@ -144,3 +144,8 @@ void MainWindow::on_pushButton_IconExample_clicked()
// Home Screen app resources...
mp_ui->tableWidget_Status->setItem(0, 2, new QTableWidgetItem(":/icons/home_day.png"));
}
+
+void MainWindow::on_pushButton_PopupExample_clicked()
+{
+ mp_dBusPopupProxy->showPopup(0, "Hello Popup!\nNice to see you!");
+}
diff --git a/HomeScreenSimulator/src/mainwindow.h b/HomeScreenSimulator/src/mainwindow.h
index 2eb6e11..7c2f19b 100644
--- a/HomeScreenSimulator/src/mainwindow.h
+++ b/HomeScreenSimulator/src/mainwindow.h
@@ -18,7 +18,7 @@
#define MAINWINDOW_H
#include <QMainWindow>
-#include "../interfaces/daynightmode.h"
+#include <include/daynightmode.hpp>
#include "daynightmode_adapter.h"
#include "statusbar_proxy.h"
@@ -55,6 +55,8 @@ private slots:
void on_pushButton_IconExample_clicked();
+ void on_pushButton_PopupExample_clicked();
+
private:
Ui::MainWindow *mp_ui;
DaynightmodeAdaptor *mp_dBusDayNightModeAdapter;