No need to adjus shade if going to draw background when down

This commit is contained in:
craig.p.drummond
2014-10-09 19:49:33 +00:00
parent 61daa79dfc
commit 1771201bad

View File

@@ -50,8 +50,8 @@ void FlatToolButton::paintEvent(QPaintEvent *e)
QStylePainter p(this);
QStyleOptionToolButton opt;
initStyleOption(&opt);
if (isDown()) {
opt.state&=QStyle::State_Sunken;
}
// if (isDown()) {
// opt.state&=QStyle::State_Sunken;
// }
p.drawComplexControl(QStyle::CC_ToolButton, opt);
}