-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
34 lines (28 loc) · 1.15 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include <QApplication>
// #include <QCommandLineParser>
#include "mainWindow.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
// moved to mainWindow.cpp
// hide the mouse cursor
// QApplication::setOverrideCursor(Qt::BlankCursor);
// replaced with processCommandLine.cpp
#if 0
QCommandLineParser parser;
parser.addHelpOption();
parser.addPositionalArgument("directory"
,QCoreApplication::translate("main"
,"Directory to open photos."));
parser.addPositionalArgument("seconds"
,QCoreApplication::translate("main"
,"Display time in seconds."));
parser.addPositionalArgument("filename"
,QCoreApplication::translate("main"
,"Display filename over image (1=yes)."));
// Process the actual command line arguments given by the user
parser.process(app);
#endif
MainWindow window(QCoreApplication::arguments());
return app.exec();
}