Compile fix, cast to QRectF first then adjust

This commit is contained in:
baldurk
2017-07-28 20:01:41 +01:00
parent 0c8ca76c9e
commit feb99ca6a4
+1 -1
View File
@@ -1710,7 +1710,7 @@ void RDStyle::drawControl(ControlElement control, const QStyleOption *opt, QPain
if(!(opt->state & State_Selected))
{
QRectF bottomLine = opt->rect.adjusted(0, 0.5, 0, 0);
QRectF bottomLine = QRectF(opt->rect).adjusted(0, -0.5, 0, 0);
p->drawLine(bottomLine.bottomLeft(), bottomLine.bottomRight());
}