summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuoqing Zhang <guoqing.zhang@nokia.com>2011-04-08 08:45:31 (GMT)
committerGuoqing Zhang <guoqing.zhang@nokia.com>2011-04-08 08:45:31 (GMT)
commita84b6c258841492dde22a8370e6b40b28bc4f078 (patch)
tree773a5c6e79f571e96c9d3f32344e7cbb49cc0ea7
parent57d886821ceae5adc989efee81b9c78508cac925 (diff)
downloadQt-a84b6c258841492dde22a8370e6b40b28bc4f078.zip
Qt-a84b6c258841492dde22a8370e6b40b28bc4f078.tar.gz
Qt-a84b6c258841492dde22a8370e6b40b28bc4f078.tar.bz2
Add focus frame support in stylesheet
Task-number: QTBUG-16027 Reviewed-by: Sami Merila
-rw-r--r--src/gui/styles/qstylesheetstyle.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/styles/qstylesheetstyle.cpp b/src/gui/styles/qstylesheetstyle.cpp
index a4e7c38..6a0bf5e 100644
--- a/src/gui/styles/qstylesheetstyle.cpp
+++ b/src/gui/styles/qstylesheetstyle.cpp
@@ -3339,6 +3339,11 @@ void QStyleSheetStyle::drawControl(ControlElement ce, const QStyleOption *opt, Q
}
break;
+ case CE_FocusFrame:
+ if (rule.hasBorder())
+ rule.drawBorder(p, opt->rect);
+ return;
+
case CE_PushButton:
if (const QStyleOptionButton *btn = qstyleoption_cast<const QStyleOptionButton *>(opt)) {
if (rule.hasDrawable() || rule.hasBox() || rule.hasPosition() || rule.hasPalette() ||