-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
42 lines (32 loc) · 1.17 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
#include <QApplication>
#include <QCommandLineParser>
#include <KAboutData>
#include <KLocalizedString>
#include <KMessageBox>
#include "main.h"
KydlApp::KydlApp(int& argc, char **argv) : QApplication(argc, argv) {
KLocalizedString::setApplicationDomain("kydl");
KAboutData aboutData(
QStringLiteral("kydl"),
i18n("Kydl"),
QStringLiteral("1.0"),
i18n("A Qt5 based frontend to youtube-dl!"),
KAboutLicense::GPL,
i18n("(c) 2019"),
i18n("written with lovee"),
QStringLiteral("https://kydl.espi.dev/"),
QStringLiteral("[email protected]"));
aboutData.addAuthor(i18n("Devin Lin"), i18n("Developer"), QStringLiteral("[email protected]"), QStringLiteral("https://espi.dev"));
KAboutData::setApplicationData(aboutData);
QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("hwinfo")));
QCommandLineParser parser;
aboutData.setupCommandLine(&parser);
parser.process(*this);
aboutData.processCommandLine(&parser);
display = new Kydl();
display->show();
}
int main(int argc, char *argv[]) {
KydlApp Kyd(argc, argv);
return Kyd.exec();
}