Changeset View
Changeset View
Standalone View
Standalone View
src/main.cpp
Show All 16 Lines | |||||
17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * | 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * | ||
18 | *************************************************************************************/ | 18 | *************************************************************************************/ | ||
19 | 19 | | |||
20 | #include <kaboutdata.h> | 20 | #include <kaboutdata.h> | ||
21 | #include <QCommandLineParser> | 21 | #include <QCommandLineParser> | ||
22 | #include <klocalizedstring.h> | 22 | #include <klocalizedstring.h> | ||
23 | #include "video/webcamcontrol.h" | 23 | #include "video/webcamcontrol.h" | ||
24 | #include <QApplication> | 24 | #include <QApplication> | ||
25 | #include <QIcon> | ||||
25 | 26 | | |||
26 | int main(int argc, char *argv[]) | 27 | int main(int argc, char *argv[]) | ||
27 | { | 28 | { | ||
29 | QApplication app(argc, argv); | ||||
30 | KLocalizedString::setApplicationDomain("kamoso"); | ||||
31 | { | ||||
28 | KAboutData about("kamoso", i18n("Kamoso"), "3.2.3", i18n("Utility for taking photos and videos using a webcam"), | 32 | KAboutData about("kamoso", i18n("Kamoso"), "3.2.3", i18n("Utility for taking photos and videos using a webcam"), | ||
29 | KAboutLicense::GPL, i18n("(C) 2008-2015 Alex Fiestas and Aleix Pol")); | 33 | KAboutLicense::GPL, i18n("(C) 2008-2015 Alex Fiestas and Aleix Pol")); | ||
30 | 34 | | |||
31 | about.addAuthor( i18n("Aleix Pol Gonzalez"), i18n("Semaphore hacker"), "aleixpol@kde.org" ); | 35 | about.addAuthor( i18n("Aleix Pol Gonzalez"), i18n("Semaphore hacker"), "aleixpol@kde.org" ); | ||
32 | about.addAuthor( i18n("Alex Fiestas"), i18n("Coffee drinker"), "afiestas@kde.org" ); | 36 | about.addAuthor( i18n("Alex Fiestas"), i18n("Coffee drinker"), "afiestas@kde.org" ); | ||
33 | QApplication app(argc, argv); | 37 | KAboutData::setApplicationData(about); | ||
38 | QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("kamoso"), app.windowIcon())); | ||||
34 | 39 | | |||
35 | { | | |||
36 | QCommandLineParser parser; | 40 | QCommandLineParser parser; | ||
37 | about.setupCommandLine(&parser); | 41 | about.setupCommandLine(&parser); | ||
38 | parser.process(app); | 42 | parser.process(app); | ||
39 | about.processCommandLine(&parser); | 43 | about.processCommandLine(&parser); | ||
40 | } | 44 | } | ||
41 | 45 | | |||
42 | WebcamControl webcamControl; | 46 | WebcamControl webcamControl; | ||
43 | if (!webcamControl.play()) { | 47 | if (!webcamControl.play()) { | ||
Show All 9 Lines |