diff --git a/app/main.cpp b/app/main.cpp index 8c9d243c6..e5c30eca7 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -21,6 +21,8 @@ int main(int argc, char* argv[]) { QIcon::setFallbackThemeName(QStringLiteral("breeze")); + QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); + QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication app(argc, argv); app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect"))); diff --git a/daemon/kdeconnectd.cpp b/daemon/kdeconnectd.cpp index 80753afe9..e844aec76 100644 --- a/daemon/kdeconnectd.cpp +++ b/daemon/kdeconnectd.cpp @@ -127,9 +127,10 @@ static void detectPlatform(int argc, char **argv) int main(int argc, char* argv[]) { detectPlatform(argc, argv); + QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); + QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication app(argc, argv); - app.setAttribute(Qt::AA_UseHighDpiPixmaps, true); KAboutData aboutData( QStringLiteral("kdeconnect.daemon"), i18n("KDE Connect Daemon"), diff --git a/indicator/main.cpp b/indicator/main.cpp index 56e033695..7dd0861b1 100644 --- a/indicator/main.cpp +++ b/indicator/main.cpp @@ -33,9 +33,10 @@ int main(int argc, char** argv) { QIcon::setFallbackThemeName(QStringLiteral("breeze")); + QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); + QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication app(argc, argv); - app.setAttribute(Qt::AA_UseHighDpiPixmaps, true); KAboutData about(QStringLiteral("kdeconnect-indicator"), i18n("KDE Connect Indicator"), QStringLiteral(KDECONNECT_VERSION_STRING), diff --git a/settings/main.cpp b/settings/main.cpp index fe941cb7a..5429213da 100644 --- a/settings/main.cpp +++ b/settings/main.cpp @@ -18,6 +18,8 @@ int main(int argc, char** argv) { QIcon::setFallbackThemeName(QStringLiteral("breeze")); + QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); + QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication app(argc, argv); app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect"))); diff --git a/smsapp/main.cpp b/smsapp/main.cpp index d0f8c68b8..5e8c69f30 100644 --- a/smsapp/main.cpp +++ b/smsapp/main.cpp @@ -28,7 +28,8 @@ int main(int argc, char *argv[]) { QIcon::setFallbackThemeName(QStringLiteral("breeze")); - QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); + QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); + QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication app(argc, argv); app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect"))); KAboutData aboutData(QStringLiteral("kdeconnect.sms"), diff --git a/urlhandler/kdeconnect-handler.cpp b/urlhandler/kdeconnect-handler.cpp index f7a5af34f..38e0dd607 100644 --- a/urlhandler/kdeconnect-handler.cpp +++ b/urlhandler/kdeconnect-handler.cpp @@ -36,7 +36,8 @@ int main(int argc, char** argv) { - QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); + QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); + QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication app(argc, argv); app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect"))); const QString description = i18n("KDE Connect URL handler");