diff --git a/apps.cpp b/apps.cpp index 4e2b11e..204e680 100644 --- a/apps.cpp +++ b/apps.cpp @@ -16,6 +16,7 @@ apps::apps(QWidget *parent) : ui->savedWordsLaunchBtn->setProperty("type", "borderless"); ui->calculatorLaunchBtn->setProperty("type", "borderless"); ui->vncLaunchBtn->setProperty("type", "borderless"); + ui->reversiLaunchBtn->setProperty("type", "borderless"); ui->koboxAppsOpenButton->setStyleSheet("background: lightGrey; font-size: 9pt; padding: 8px"); ui->scribbleLaunchBtn->setStyleSheet("background: lightGrey; font-size: 9pt; padding: 8px"); @@ -24,6 +25,7 @@ apps::apps(QWidget *parent) : ui->savedWordsLaunchBtn->setStyleSheet("background: lightGrey; font-size: 9pt; padding: 8px"); ui->calculatorLaunchBtn->setStyleSheet("background: lightGrey; font-size: 9pt; padding: 8px"); ui->vncLaunchBtn->setStyleSheet("background: lightGrey; font-size: 9pt; padding: 8px"); + ui->reversiLaunchBtn->setStyleSheet("background: lightGrey; font-size: 9pt; padding: 8px"); // Hiding KoBox apps button and label if X11 isn't enabled/wasn't started if(checkconfig("/external_root/boot/flags/X11_START") == false or checkconfig("/external_root/boot/flags/X11_STARTED") == false) { @@ -128,3 +130,10 @@ void apps::on_vncLaunchBtn_clicked() void apps::refreshScreenNative() { emit refreshScreen(); } + +void apps::on_reversiLaunchBtn_clicked() +{ + QProcess process; + process.startDetached("qreversi", QStringList()); + qApp->quit(); +} diff --git a/apps.h b/apps.h index 9c2446d..0ea4d7c 100644 --- a/apps.h +++ b/apps.h @@ -28,6 +28,7 @@ private slots: void on_calculatorLaunchBtn_clicked(); void on_koboxAppsOpenButton_clicked(); void on_vncLaunchBtn_clicked(); + void on_reversiLaunchBtn_clicked(); void refreshScreenNative(); private: diff --git a/apps.ui b/apps.ui index 00e4f0a..cc11f47 100644 --- a/apps.ui +++ b/apps.ui @@ -56,7 +56,75 @@ 0 - + + + + + Inter + 75 + true + + + + Launch + + + + + + + + Inter + 75 + true + + + + Launch + + + + + + + + 75 + true + + + + Light Maps + + + + + + + + 75 + true + + + + Scribble + + + + + + + + Inter + 75 + true + + + + Launch + + + + @@ -82,8 +150,8 @@ - - + + 75 @@ -91,7 +159,36 @@ - Calculator + Calendar + + + + + + + + Inter + 75 + false + true + + + + Launch + + + + + + + + Inter + 75 + true + + + + Launch @@ -109,22 +206,21 @@ - - + + - Inter 75 true - Launch + Calculator - - + + 75 @@ -132,21 +228,7 @@ - Scribble - - - - - - - - Inter - 75 - true - - - - Launch + VNC viewer @@ -165,21 +247,8 @@ - - - - - 75 - true - - - - VNC viewer - - - - + 75 @@ -187,15 +256,14 @@ - Calendar + Reversi - + - Inter 75 true @@ -205,48 +273,6 @@ - - - - - Inter - 75 - true - - - - Launch - - - - - - - - Inter - 75 - false - true - - - - Launch - - - - - - - - 75 - true - - - - Light Maps - - -