aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-notify/main.cpp
blob: f9d76f281315c9f0a21442d3911ab4498b626a94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//-------------------------------------------------
// Created by q5sys
// Released under MIT License 2017-03-08
// A Simple GUI Dialog Program
//-------------------------------------------------

#include <QApplication>
#include <QMessageBox>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    QMessageBox *messageBox = new QMessageBox;
        messageBox->setText(argv[1]);
        QPushButton *pushButtonOk = messageBox->addButton(argv[2], QMessageBox::YesRole);
        messageBox->QDialog::setWindowTitle(argv[3]);
    messageBox->show();
    return a.exec();
}
bgstack15