Commit 7cac047f authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

Utils: Draw focus frame for Details button

Change-Id: I2dfacd2a6687a11194f5874da315010f7d3f3eff
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 7104998d
......@@ -138,6 +138,11 @@ void DetailsButton::paintEvent(QPaintEvent *e)
p.setBrush(QColor(0, 0, 0, 20));
p.drawRoundedRect(rect().adjusted(1, 1, -1, -1), 1, 1);
}
if (hasFocus()) {
QStyleOptionFocusRect option;
option.initFrom(this);
style()->drawPrimitive(QStyle::PE_FrameFocusRect, &option, &p, this);
}
}
QPixmap DetailsButton::cacheRendering(const QSize &size, bool checked)
......
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