From 77ada9cd9de7a6a6826ddd8d6ec451882f424e1e Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Mon, 1 May 2017 10:28:29 -0400 Subject: Ensure that all Lumina tools/utilities are setup with high-DPI icons. --- src-qt5/desktop-utils/lumina-archiver/main.cpp | 1 + src-qt5/desktop-utils/lumina-calculator/main.cpp | 1 + src-qt5/desktop-utils/lumina-fileinfo/main.cpp | 1 + src-qt5/desktop-utils/lumina-notify/main.cpp | 1 + src-qt5/desktop-utils/lumina-textedit/main.cpp | 1 + 5 files changed, 5 insertions(+) (limited to 'src-qt5/desktop-utils') diff --git a/src-qt5/desktop-utils/lumina-archiver/main.cpp b/src-qt5/desktop-utils/lumina-archiver/main.cpp index 4f9a4bc5..40cd7967 100644 --- a/src-qt5/desktop-utils/lumina-archiver/main.cpp +++ b/src-qt5/desktop-utils/lumina-archiver/main.cpp @@ -15,6 +15,7 @@ int main(int argc, char *argv[]) { LTHEME::LoadCustomEnvSettings(); QApplication a(argc, argv); + a.setAttribute(Qt::AA_UseHighDpiPixmaps); LUtils::LoadTranslation(&a, "l-archiver"); //Now go ahead and setup the app QStringList args; diff --git a/src-qt5/desktop-utils/lumina-calculator/main.cpp b/src-qt5/desktop-utils/lumina-calculator/main.cpp index 222ee8b4..f9a3e177 100644 --- a/src-qt5/desktop-utils/lumina-calculator/main.cpp +++ b/src-qt5/desktop-utils/lumina-calculator/main.cpp @@ -15,6 +15,7 @@ int main(int argc, char *argv[]) { LTHEME::LoadCustomEnvSettings(); QApplication a(argc, argv); + a.setAttribute(Qt::AA_UseHighDpiPixmaps); LUtils::LoadTranslation(&a, "l-calc"); //Now go ahead and setup the app //LuminaThemeEngine theme(&a); diff --git a/src-qt5/desktop-utils/lumina-fileinfo/main.cpp b/src-qt5/desktop-utils/lumina-fileinfo/main.cpp index 4b048487..a602f290 100644 --- a/src-qt5/desktop-utils/lumina-fileinfo/main.cpp +++ b/src-qt5/desktop-utils/lumina-fileinfo/main.cpp @@ -11,6 +11,7 @@ int main(int argc, char ** argv) { LTHEME::LoadCustomEnvSettings(); QApplication a(argc, argv); + a.setAttribute(Qt::AA_UseHighDpiPixmaps); LUtils::LoadTranslation(&a, "l-fileinfo"); //LuminaThemeEngine theme(&a); diff --git a/src-qt5/desktop-utils/lumina-notify/main.cpp b/src-qt5/desktop-utils/lumina-notify/main.cpp index c0e3bd05..23f30b95 100644 --- a/src-qt5/desktop-utils/lumina-notify/main.cpp +++ b/src-qt5/desktop-utils/lumina-notify/main.cpp @@ -12,6 +12,7 @@ int main(int argc, char *argv[]) { QApplication a(argc, argv); + a.setAttribute(Qt::AA_UseHighDpiPixmaps); int answer; QMessageBox *messageBox = new QMessageBox; messageBox->setText(argv[1]); diff --git a/src-qt5/desktop-utils/lumina-textedit/main.cpp b/src-qt5/desktop-utils/lumina-textedit/main.cpp index 61f6672e..7c1619b0 100644 --- a/src-qt5/desktop-utils/lumina-textedit/main.cpp +++ b/src-qt5/desktop-utils/lumina-textedit/main.cpp @@ -15,6 +15,7 @@ int main(int argc, char *argv[]) { LTHEME::LoadCustomEnvSettings(); QApplication a(argc, argv); + a.setAttribute(Qt::AA_UseHighDpiPixmaps); LUtils::LoadTranslation(&a, "l-te"); //Now go ahead and setup the app //LuminaThemeEngine theme(&a); -- cgit