Fix disabled button rendering qt5transition
authorunc0rr
Sat, 10 Mar 2018 23:43:32 +0100
branchqt5transition
changeset 13164 6f189da00c25
parent 13163 99dd144f0a54
child 13180 9f6f2e51d2ef
Fix disabled button rendering
QTfrontend/ui/widget/togglebutton.cpp
--- a/QTfrontend/ui/widget/togglebutton.cpp	Sat Mar 10 23:16:22 2018 +0100
+++ b/QTfrontend/ui/widget/togglebutton.cpp	Sat Mar 10 23:43:32 2018 +0100
@@ -30,6 +30,8 @@
     pmChecked.load(img);
     pmDisabled.load(img);
 
+    pmDisabled.setDevicePixelRatio(pm.devicePixelRatio());
+
     setMaximumWidth(pmChecked.width() + 6);
 
     painter->begin(&pmDisabled);