[education/rkward] rkward: Enable highdpi pixmaps
Nicolas Fella
null at kde.org
Sat Oct 9 07:53:56 BST 2021
Git commit f34cb38798e8a7d3f9a39f26be4ecab3013ea57c by Nicolas Fella.
Committed on 05/10/2021 at 20:36.
Pushed by tfry into branch 'master'.
Enable highdpi pixmaps
This fixes icons being pixelated on highdpi screens
M +1 -0 rkward/main.cpp
https://invent.kde.org/education/rkward/commit/f34cb38798e8a7d3f9a39f26be4ecab3013ea57c
diff --git a/rkward/main.cpp b/rkward/main.cpp
index 8eafd25c..7dcb34a5 100644
--- a/rkward/main.cpp
+++ b/rkward/main.cpp
@@ -239,6 +239,7 @@ QString resolveRSpecOrFail (QString input, QString message) {
int main (int argc, char *argv[]) {
RK_Debug::RK_Debug_Level = DL_WARNING;
+ QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
#ifndef NO_QT_WEBENGINE
// annoyingly, QWebEngineUrlSchemes have to be registered before creating the app.
QWebEngineUrlScheme scheme("help");
More information about the rkward-tracker
mailing list