-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.cpp
43 lines (34 loc) · 1.25 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
35
36
37
38
39
40
41
42
43
#include <cstdlib>
#include <QApplication>
#include <QCommandLineParser>
#include <KAboutData>
#include <KLocalizedString>
#include "mainwindow.h"
int main (int argc, char *argv[])
{
QApplication app(argc, argv);
KLocalizedString::setApplicationDomain("kdiff");
KAboutData aboutData(
QStringLiteral("kdiff"),
i18n("KDiff"),
QStringLiteral("0.1.0"),
i18n("Compare Directories and Files using GNU's diff"),
KAboutLicense::GPL,
i18n("(c) 2017 John Salatas"),
nullptr,
QStringLiteral("https://github.com/jsalatas/kdiff"),
QStringLiteral("https://github.com/jsalatas/kdiff/issues"));
aboutData.addAuthor(i18n("John Salatas"), QString(), QStringLiteral("[email protected]"),
QStringLiteral("http://jsalatas.ictpro.gr/"));
KAboutData::setApplicationData(aboutData);
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kompare")));
QCommandLineParser parser;
parser.addHelpOption();
parser.addVersionOption();
aboutData.setupCommandLine(&parser);
parser.process(app);
aboutData.processCommandLine(&parser);
KDiffMainWindow* window = new KDiffMainWindow();
window->show();
return app.exec();
}