Home
Phabricator
Search
Log In
Paste
P608
Masterwork From Distant Lands
Active
Public
Actions
Authored by
davidedmundson
on Jun 18 2020, 2:36 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
diff --git a/krunner/main.cpp b/krunner/main.cpp
index 4f67a7fd1..bbf20743e 100644
--- a/krunner/main.cpp
+++ b/krunner/main.cpp
@@ -41,9 +41,11 @@
int main(int argc, char **argv)
{
- qunsetenv("QT_DEVICE_PIXEL_RATIO");
QCommandLineParser parser;
- QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling);
+ if (!qEnvironmentVariableIsSet("PLASMA_USE_QT_SCALING")) {
+ qunsetenv("QT_DEVICE_PIXEL_RATIO");
+ QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling);
+ }
const bool qpaVariable = qEnvironmentVariableIsSet("QT_QPA_PLATFORM");
KWorkSpace::detectPlatform(argc, argv);
davidedmundson
edited the content of this paste.
(Show Details)
Jun 18 2020, 2:36 PM
davidedmundson
changed the title of this paste from untitled to
Masterwork From Distant Lands
.
Log In to Comment