Commit e586665e authored by Matej Mrenica's avatar Matej Mrenica Committed by Simon Depiets
Browse files

Fix blurry icons by adding UseHighDpiPixmaps flag

Summary:
When using fractional scaling, icons on the top are blurred. This patch fixes the issue.
The only change needed to the code is to find a better placement for the line.

Test Plan:
No side effects.

Before:
{F8280480}
After:
{F8280479}

Reviewers: #kde_applications, sdepiets

Reviewed By: sdepiets

Subscribers: davidedmundson, sdepiets

Differential Revision: https://phabricator.kde.org/D29376
parent 5ca7da25
...@@ -62,6 +62,8 @@ int main(int argc, char **argv) ...@@ -62,6 +62,8 @@ int main(int argc, char **argv)
TM::threadPool()->setMaxThreadCount(1); TM::threadPool()->setMaxThreadCount(1);
TM::threadPool()->setExpiryTimeout(-1); TM::threadPool()->setExpiryTimeout(-1);
QThreadPool::globalInstance()->setMaxThreadCount(1); QThreadPool::globalInstance()->setMaxThreadCount(1);
// Fixes blurry icons with fractional scaling, see https://phabricator.kde.org/D29376
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
QApplication app(argc, argv); QApplication app(argc, argv);
KCrash::initialize(); KCrash::initialize();
KLocalizedString::setApplicationDomain("lokalize"); KLocalizedString::setApplicationDomain("lokalize");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment