QTfrontend/ui/widget/togglebutton.cpp
changeset 13193 16b375b21af1
parent 13164 6f189da00c25
child 13248 480dcc29391c
--- a/QTfrontend/ui/widget/togglebutton.cpp	Tue Mar 13 23:07:58 2018 +0100
+++ b/QTfrontend/ui/widget/togglebutton.cpp	Tue Mar 13 23:19:24 2018 +0100
@@ -30,6 +30,8 @@
     pmChecked.load(img);
     pmDisabled.load(img);
 
+    pmDisabled.setDevicePixelRatio(pm.devicePixelRatio());
+
     setMaximumWidth(pmChecked.width() + 6);
 
     painter->begin(&pmDisabled);