diff options
author | Guoqing Zhang <guoqing.zhang@nokia.com> | 2011-04-12 07:49:08 (GMT) |
---|---|---|
committer | Guoqing Zhang <guoqing.zhang@nokia.com> | 2011-04-12 07:49:08 (GMT) |
commit | efc004a7ad9f1e40fdba6afc06e161052d9fae2f (patch) | |
tree | d511ba3998c7f87ba490b9d465cca58483ef614d /src | |
parent | f3092b91a7a2e9e34dfe7eefb3c6b0ed8c3c3786 (diff) | |
download | Qt-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.cpp | 7 |
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() || |