Commit 86ca2340 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

ManhattanStyle: Reduce scope of local variable

Change-Id: Id9dcb4706934ee36972a55c73c23f046357c9512
Reviewed-by: default avatarAlessandro Portale <alessandro.portale@digia.com>
parent 91f11d4b
......@@ -647,7 +647,6 @@ void ManhattanStyle::drawControl(ControlElement element, const QStyleOption *opt
pal.setBrush(QPalette::ButtonText, dis ? Qt::gray : Qt::black);
item.palette = pal;
QCommonStyle::drawControl(element, &item, painter, widget);
QRect r = option->rect;
if (act) {
// Fill|
......@@ -659,6 +658,7 @@ void ManhattanStyle::drawControl(ControlElement element, const QStyleOption *opt
// Outline
painter->setPen(QPen(highlightOutline, 0));
const QRect r = option->rect;
painter->drawLine(QPoint(r.left(), r.top() + 1), QPoint(r.left(), r.bottom()));
painter->drawLine(QPoint(r.right(), r.top() + 1), QPoint(r.right(), r.bottom()));
painter->drawLine(QPoint(r.left() + 1, r.top()), QPoint(r.right() - 1, r.top()));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment