branch | qt5transition |
changeset 13164 | 6f189da00c25 |
parent 11046 | 47a8c19ecb60 |
child 13248 | 480dcc29391c |
--- 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);