Commit e9d53ae2 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Call KLocalizedString::setApplicationDomain after Q*App creation

As now recommended, to ensure all locale settings are done from Qt side
parent c6dc4b56
......@@ -34,8 +34,8 @@
extern "C" int Q_DECL_EXPORT kdemain(int argc, char *argv[])
{
KLocalizedString::setApplicationDomain("klipper");
QApplication app(argc, argv);
KLocalizedString::setApplicationDomain("klipper");
KAboutData aboutData(QStringLiteral("klipper"),
i18n("Klipper"),
......
......@@ -43,10 +43,9 @@ int main(int argc, char **argv)
qunsetenv("QT_DEVICE_PIXEL_RATIO");
QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling);
KLocalizedString::setApplicationDomain("krunner");
QQuickWindow::setDefaultAlphaBuffer(true);
QApplication app(argc, argv);
KLocalizedString::setApplicationDomain("krunner");
KQuickAddons::QtQuickSettings::init();
......
......@@ -56,9 +56,8 @@ int main(int argc, char *argv[])
QQuickWindow::setDefaultAlphaBuffer(true);
KLocalizedString::setApplicationDomain("plasmashell");
QApplication app(argc, argv);
KLocalizedString::setApplicationDomain("plasmashell");
// The executable's path is added to the library/plugin paths.
// This does not make much sense for plasmashell.
......
......@@ -221,9 +221,9 @@ extern "C" Q_DECL_EXPORT int kdemain(int argc, char *argv[])
startup = ( strcmp( argv[ 0 ], "kcminit_startup" ) == 0 ); // started from startkde?
KLocalizedString::setApplicationDomain("kcminit");
QGuiApplication::setDesktopSettingsAware(false);
QGuiApplication app(argc, argv); //gui is needed for several modules
KLocalizedString::setApplicationDomain("kcminit");
KAboutData about(QStringLiteral("kcminit"), i18n("KCMInit"), QString(),
i18n("KCMInit - runs startup initialization for Control Modules."), KAboutLicense::GPL);
KAboutData::setApplicationData(about);
......
......@@ -25,9 +25,8 @@
int main(int argc, char** argv)
{
KLocalizedString::setApplicationDomain("systemmonitor");
QApplication app(argc, argv);
KLocalizedString::setApplicationDomain("systemmonitor");
app.setOrganizationDomain(QStringLiteral("kde.org"));
app.setDesktopFileName(QStringLiteral("org.kde.systemmonitor"));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment