summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGuoqing Zhang <guoqing.zhang@nokia.com>2011-04-12 07:49:08 (GMT)
committerGuoqing Zhang <guoqing.zhang@nokia.com>2011-04-12 07:49:08 (GMT)
commitefc004a7ad9f1e40fdba6afc06e161052d9fae2f (patch)
treed511ba3998c7f87ba490b9d465cca58483ef614d /src
parentf3092b91a7a2e9e34dfe7eefb3c6b0ed8c3c3786 (diff)
downloadQt-efc004a7ad9f1e40fdba6afc06e161052d9fae2f.zip
Qt-efc004a7ad9f1e40fdba6afc06e161052d9fae2f.tar.gz
Qt-efc004a7ad9f1e40fdba6afc06e161052d9fae2f.tar.bz2
Add focus frame support in style sheet
Task-number: QTBUG-16027 Reviewed-by: Olivier Goffart
Diffstat (limited to 'src')
-rw-r--r--src/gui/styles/qstylesheetstyle.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/styles/qstylesheetstyle.cpp b/src/gui/styles/qstylesheetstyle.cpp
index ecf924c..faa929e 100644
--- a/src/gui/styles/qstylesheetstyle.cpp
+++ b/src/gui/styles/qstylesheetstyle.cpp
@@ -3323,6 +3323,13 @@ void QStyleSheetStyle::drawControl(ControlElement ce, const QStyleOption *opt, Q
}
break;
+ case CE_FocusFrame:
+ if (!rule.hasNativeBorder()) {
+ rule.drawBorder(p, opt->rect);
+ return;
+ }
+ break;
+
case CE_PushButton:
if (const QStyleOptionButton *btn = qstyleoption_cast<const QStyleOptionButton *>(opt)) {
if (rule.hasDrawable() || rule.hasBox() || rule.hasPosition() || rule.hasPalette() ||