author | unc0rr |
Sat, 10 Mar 2018 23:43:32 +0100 | |
branch | qt5transition |
changeset 13159 | 6f189da00c25 |
parent 13158 | 99dd144f0a54 |
child 13175 | 9f6f2e51d2ef |
--- 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);