main.cpp | main.cpp | |||
---|---|---|---|---|
skipping to change at line 73 | skipping to change at line 73 | |||
//even if we don't use Qt scaling the compositor will try to scale us a nyway so we have no choice | //even if we don't use Qt scaling the compositor will try to scale us a nyway so we have no choice | |||
if (!qEnvironmentVariableIsSet("PLASMA_USE_QT_SCALING")) { | if (!qEnvironmentVariableIsSet("PLASMA_USE_QT_SCALING")) { | |||
qunsetenv("QT_DEVICE_PIXEL_RATIO"); | qunsetenv("QT_DEVICE_PIXEL_RATIO"); | |||
QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling); | QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling); | |||
} else { | } else { | |||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); | QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); | |||
} | } | |||
QQuickWindow::setDefaultAlphaBuffer(true); | QQuickWindow::setDefaultAlphaBuffer(true); | |||
qputenv("QT_WAYLAND_DISABLE_FIXED_POSITIONS", {}); | ||||
const bool qpaVariable = qEnvironmentVariableIsSet("QT_QPA_PLATFORM"); | const bool qpaVariable = qEnvironmentVariableIsSet("QT_QPA_PLATFORM"); | |||
detectPlatform(argc, argv); | detectPlatform(argc, argv); | |||
QApplication app(argc, argv); | QApplication app(argc, argv); | |||
qunsetenv("QT_WAYLAND_DISABLE_FIXED_POSITIONS"); | ||||
if (!qpaVariable) { | if (!qpaVariable) { | |||
// don't leak the env variable to processes we start | // don't leak the env variable to processes we start | |||
qunsetenv("QT_QPA_PLATFORM"); | qunsetenv("QT_QPA_PLATFORM"); | |||
} | } | |||
KQuickAddons::QtQuickSettings::init(); | KQuickAddons::QtQuickSettings::init(); | |||
KLocalizedString::setApplicationDomain("latte-dock"); | KLocalizedString::setApplicationDomain("latte-dock"); | |||
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("latte-dock"))); | app.setWindowIcon(QIcon::fromTheme(QStringLiteral("latte-dock"))); | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 0 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |