Changeset View
Changeset View
Standalone View
Standalone View
app/main.cpp
Show All 32 Lines | |||||
33 | 33 | | |||
34 | int main( int argc, char *argv[] ) | 34 | int main( int argc, char *argv[] ) | ||
35 | { | 35 | { | ||
36 | //exec is systemsettings5, but we need the QPT to use the right config from the qApp constructor | 36 | //exec is systemsettings5, but we need the QPT to use the right config from the qApp constructor | ||
37 | //which is before KAboutData::setApplicationData | 37 | //which is before KAboutData::setApplicationData | ||
38 | QCoreApplication::setApplicationName(QStringLiteral("systemsettings")); | 38 | QCoreApplication::setApplicationName(QStringLiteral("systemsettings")); | ||
39 | 39 | | |||
40 | KWorkSpace::detectPlatform(argc, argv); | 40 | KWorkSpace::detectPlatform(argc, argv); | ||
41 | KQuickAddons::QtQuickSettings::init(); | | |||
42 | SystemSettingsApp application(argc, argv); | 41 | SystemSettingsApp application(argc, argv); | ||
42 | KQuickAddons::QtQuickSettings::init(); | ||||
43 | KCrash::initialize(); | 43 | KCrash::initialize(); | ||
44 | 44 | | |||
45 | KLocalizedString::setApplicationDomain("systemsettings"); | 45 | KLocalizedString::setApplicationDomain("systemsettings"); | ||
46 | 46 | | |||
47 | // About data | 47 | // About data | ||
48 | KAboutData aboutData(QStringLiteral("systemsettings"), i18n("System Settings"), QLatin1String(PROJECT_VERSION), i18n("Central configuration center by KDE."), KAboutLicense::GPL, i18n("(c) 2009, Ben Cooksley")); | 48 | KAboutData aboutData(QStringLiteral("systemsettings"), i18n("System Settings"), QLatin1String(PROJECT_VERSION), i18n("Central configuration center by KDE."), KAboutLicense::GPL, i18n("(c) 2009, Ben Cooksley")); | ||
49 | aboutData.addAuthor(i18n("Ben Cooksley"), i18n("Maintainer"), QStringLiteral("bcooksley@kde.org")); | 49 | aboutData.addAuthor(i18n("Ben Cooksley"), i18n("Maintainer"), QStringLiteral("bcooksley@kde.org")); | ||
50 | aboutData.addAuthor(i18n("Mathias Soeken"), i18n("Developer"), QStringLiteral("msoeken@informatik.uni-bremen.de")); | 50 | aboutData.addAuthor(i18n("Mathias Soeken"), i18n("Developer"), QStringLiteral("msoeken@informatik.uni-bremen.de")); | ||
Show All 22 Lines |