Changeset View
Changeset View
Standalone View
Standalone View
src/main.cpp
Show All 20 Lines | |||||
21 | 21 | | |||
22 | #include <KAboutData> | 22 | #include <KAboutData> | ||
23 | #include <KDBusService> | 23 | #include <KDBusService> | ||
24 | #include <KLocalizedString> | 24 | #include <KLocalizedString> | ||
25 | 25 | | |||
26 | #include <QCommandLineParser> | 26 | #include <QCommandLineParser> | ||
27 | #include <QtGlobal> | 27 | #include <QtGlobal> | ||
28 | 28 | | |||
29 | #ifdef WITH_QT_WEBENGINE | ||||
30 | #include <QtWebEngine> | ||||
31 | #endif | ||||
32 | | ||||
29 | #ifdef Q_WS_X11 | 33 | #ifdef Q_WS_X11 | ||
30 | #include <X11/Xlib.h> | 34 | #include <X11/Xlib.h> | ||
31 | #endif | 35 | #endif | ||
32 | 36 | | |||
33 | #include <csignal> | 37 | #include <csignal> | ||
34 | 38 | | |||
35 | #ifdef Q_OS_WIN | 39 | #ifdef Q_OS_WIN | ||
36 | AMAROK_EXPORT OcsData ocsData; | 40 | AMAROK_EXPORT OcsData ocsData; | ||
37 | #endif | 41 | #endif | ||
38 | 42 | | |||
39 | int main( int argc, char *argv[] ) | 43 | int main( int argc, char *argv[] ) | ||
40 | { | 44 | { | ||
41 | App app(argc, argv); | 45 | App app(argc, argv); | ||
46 | | ||||
47 | #ifdef WITH_QT_WEBENGINE | ||||
48 | QtWebEngine::initialize(); | ||||
49 | #endif | ||||
50 | | ||||
42 | app.setApplicationDisplayName(i18n("Amarok")); | 51 | app.setApplicationDisplayName(i18n("Amarok")); | ||
43 | 52 | | |||
44 | QCoreApplication::setApplicationName("amarok"); | 53 | QCoreApplication::setApplicationName("amarok"); | ||
45 | QCoreApplication::setOrganizationDomain("kde.org"); | 54 | QCoreApplication::setOrganizationDomain("kde.org"); | ||
46 | QCoreApplication::setApplicationVersion(AMAROK_VERSION); | 55 | QCoreApplication::setApplicationVersion(AMAROK_VERSION); | ||
47 | 56 | | |||
48 | KAboutData aboutData( "amarok", | 57 | KAboutData aboutData( "amarok", | ||
49 | ki18n( "Amarok" ).toString(), | 58 | ki18n( "Amarok" ).toString(), | ||
▲ Show 20 Lines • Show All 295 Lines • Show Last 20 Lines |