aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-notify/main.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-04-28 00:24:20 -0400
committerKen Moore <ken@ixsystems.com>2017-04-28 00:24:20 -0400
commitff4b91a4da20fb54b747da055e3622110dc99cbe (patch)
treee8d54385bc8448fe3b03d77d6393f06ebdc2bd31 /src-qt5/desktop-utils/lumina-notify/main.cpp
parentClean up the UI for lumina-mediaplayer, and disable video output (still getti... (diff)
downloadlumina-ff4b91a4da20fb54b747da055e3622110dc99cbe.tar.gz
lumina-ff4b91a4da20fb54b747da055e3622110dc99cbe.tar.bz2
lumina-ff4b91a4da20fb54b747da055e3622110dc99cbe.zip
Oops - move lumina-notify back to the desktop-utils category (JT already turned it on by default)
Also add all the translation files for lumina-mediaplayer.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-notify/main.cpp')
-rw-r--r--src-qt5/desktop-utils/lumina-notify/main.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src-qt5/desktop-utils/lumina-notify/main.cpp b/src-qt5/desktop-utils/lumina-notify/main.cpp
new file mode 100644
index 00000000..c0e3bd05
--- /dev/null
+++ b/src-qt5/desktop-utils/lumina-notify/main.cpp
@@ -0,0 +1,24 @@
+//-------------------------------------------------
+// Created by q5sys (JT)
+// Released under MIT License 2017-03-08
+// A Simple GUI Dialog Program
+//-------------------------------------------------
+
+#include <QApplication>
+#include <QMessageBox>
+#include <QDebug>
+#include <QTextStream>
+
+int main(int argc, char *argv[])
+{
+ QApplication a(argc, argv);
+ int answer;
+ QMessageBox *messageBox = new QMessageBox;
+ messageBox->setText(argv[1]);
+ QPushButton *pushButtonOk = messageBox->addButton(argv[2], QMessageBox::AcceptRole);
+ QPushButton *pushButtonNo = messageBox->addButton(argv[3], QMessageBox::RejectRole);
+ messageBox->QDialog::setWindowTitle(argv[4]);
+ messageBox->show();
+ if(messageBox->exec() == QMessageBox::AcceptRole){ answer = 0; QTextStream cout(stdout); cout << answer;}
+ else { answer = 1; QTextStream cout(stdout); cout << answer;}
+}
bgstack15