blob: 18037e1b99cc867cbfea14a3f8fd831f22292dc0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include <QApplication>
#include <QTimer>
#include "aboutdialog.h"
int main(int argc, char **argv)
{
QApplication app(argc, argv);
app.setApplicationName("about");
app.setApplicationVersion("1.2.3");
AboutDialog dlg;
QObject::connect(&dlg, &AboutDialog::finished, &app, &QApplication::quit);
dlg.show();
if(qEnvironmentVariableIsSet("autoclose")) {
QTimer::singleShot(200, &dlg, &AboutDialog::accept);
}
return app.exec();
}
|