diff options
author | Alessandro Portale <aportale@trolltech.com> | 2009-06-09 15:50:13 (GMT) |
---|---|---|
committer | Alessandro Portale <aportale@trolltech.com> | 2009-06-09 17:42:55 (GMT) |
commit | 4df7621c7ab1b38416002430377a451a4c416100 (patch) | |
tree | 84205543972412babcc9fa27a8e1ea8758fce5cf /src | |
parent | 9bdd939c508dfe784402c5c3e85e26d135f7643c (diff) | |
download | Qt-4df7621c7ab1b38416002430377a451a4c416100.zip Qt-4df7621c7ab1b38416002430377a451a4c416100.tar.gz Qt-4df7621c7ab1b38416002430377a451a4c416100.tar.bz2 |
Itemviews have go their focus frame back.
Got lost with dc177883bf98a68e61c9a9cda7e1ba9464079275
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/styles/qs60style.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp index 6d24d54..3236928 100644 --- a/src/gui/styles/qs60style.cpp +++ b/src/gui/styles/qs60style.cpp @@ -1880,11 +1880,11 @@ void QS60Style::drawControl(ControlElement element, const QStyleOption *option, } break; #endif //QT_NO_TOOLBAR - case CE_ShapedFrame: { - const QTextEdit *txt = qobject_cast<const QTextEdit *>(widget); - if (txt) + case CE_ShapedFrame: + if (qobject_cast<const QTextEdit *>(widget)) QS60StylePrivate::drawSkinElement(QS60StylePrivate::SE_Editor, painter, option->rect, flags); - } + if (option->state & State_HasFocus) + drawPrimitive(PE_FrameFocusRect, option, painter, widget); break; default: QCommonStyle::drawControl(element, option, painter, widget); |