diff --git a/apps.cpp b/apps.cpp
index 6e979d8..29b945e 100644
--- a/apps.cpp
+++ b/apps.cpp
@@ -18,6 +18,7 @@ apps::apps(QWidget *parent) :
ui->lightmapsLaunchBtn->setStyleSheet("background: lightGrey; font-size: 9pt; padding: 8px");
ui->calendarLaunchBtn->setStyleSheet("background: lightGrey; font-size: 9pt; padding: 8px");
ui->savedWordsLaunchBtn->setStyleSheet("background: lightGrey; font-size: 9pt; padding: 8px");
+ ui->calculatorLaunchBtn->setStyleSheet("background: lightGrey; font-size: 9pt; padding: 8px");
QFile stylesheetFile(":/resources/eink.qss");
stylesheetFile.open(QFile::ReadOnly);
@@ -62,3 +63,10 @@ void apps::on_calendarLaunchBtn_clicked()
calendarWindow->setAttribute(Qt::WA_DeleteOnClose);
calendarWindow->showFullScreen();
}
+
+void apps::on_calculatorLaunchBtn_clicked()
+{
+ QProcess process;
+ process.startDetached("calculator", QStringList());
+ qApp->quit();
+}
diff --git a/apps.h b/apps.h
index 5f3f7c9..c271d39 100644
--- a/apps.h
+++ b/apps.h
@@ -23,6 +23,7 @@ private slots:
void on_lightmapsLaunchBtn_clicked();
void on_savedWordsLaunchBtn_clicked();
void on_calendarLaunchBtn_clicked();
+ void on_calculatorLaunchBtn_clicked();
private:
Ui::apps *ui;
diff --git a/apps.ui b/apps.ui
index 7800c3d..1bdca7d 100644
--- a/apps.ui
+++ b/apps.ui
@@ -85,6 +85,18 @@ Back
0
+ -
+
+
+
+ Inter
+
+
+
+ Launch
+
+
+
-
@@ -98,19 +110,6 @@ Back
- -
-
-
-
- 75
- true
-
-
-
- Light Maps
-
-
-
-
@@ -123,32 +122,6 @@ Back
- -
-
-
-
- Inter
- false
-
-
-
- Launch
-
-
-
- -
-
-
-
- 75
- true
-
-
-
- Scribble
-
-
-
-
@@ -175,8 +148,60 @@ Back
- -
-
+
-
+
+
+
+ 75
+ true
+
+
+
+ Light Maps
+
+
+
+ -
+
+
+
+ 75
+ true
+
+
+
+ Scribble
+
+
+
+ -
+
+
+
+ Inter
+ false
+
+
+
+ Launch
+
+
+
+ -
+
+
+
+ 75
+ true
+
+
+
+ Calculator
+
+
+
+ -
+
Inter