Changeset View
Changeset View
Standalone View
Standalone View
krunner/main.cpp
Show All 27 Lines | |||||
28 | 28 | | |||
29 | #include <KAuthorized> | 29 | #include <KAuthorized> | ||
30 | #include <KAboutData> | 30 | #include <KAboutData> | ||
31 | #include <KDBusService> | 31 | #include <KDBusService> | ||
32 | 32 | | |||
33 | #include <kdeclarative/qmlobject.h> | 33 | #include <kdeclarative/qmlobject.h> | ||
34 | #include <KQuickAddons/QtQuickSettings> | 34 | #include <KQuickAddons/QtQuickSettings> | ||
35 | 35 | | |||
36 | #include <kworkspace.h> | ||||
36 | 37 | | |||
37 | #include "view.h" | 38 | #include "view.h" | ||
38 | 39 | | |||
39 | static QCommandLineParser parser; | 40 | static QCommandLineParser parser; | ||
40 | 41 | | |||
41 | int main(int argc, char **argv) | 42 | int main(int argc, char **argv) | ||
42 | { | 43 | { | ||
43 | qunsetenv("QT_DEVICE_PIXEL_RATIO"); | 44 | qunsetenv("QT_DEVICE_PIXEL_RATIO"); | ||
44 | QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling); | 45 | QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling); | ||
45 | 46 | | |||
47 | KWorkSpace::platformDetection(argc, argv); | ||||
46 | QQuickWindow::setDefaultAlphaBuffer(true); | 48 | QQuickWindow::setDefaultAlphaBuffer(true); | ||
47 | QApplication app(argc, argv); | 49 | QApplication app(argc, argv); | ||
48 | KLocalizedString::setApplicationDomain("krunner"); | 50 | KLocalizedString::setApplicationDomain("krunner"); | ||
49 | 51 | | |||
50 | KQuickAddons::QtQuickSettings::init(); | 52 | KQuickAddons::QtQuickSettings::init(); | ||
51 | 53 | | |||
52 | // TODO: Make it a QGuiApplication once we don't depend on KDELibs4Support | 54 | // TODO: Make it a QGuiApplication once we don't depend on KDELibs4Support | ||
53 | // QGuiApplication app(argc, argv); | 55 | // QGuiApplication app(argc, argv); | ||
Show All 38 Lines |