diff options
author | Alessandro Portale <aportale@trolltech.com> | 2009-06-09 15:50:13 (GMT) |
---|---|---|
committer | Alessandro Portale <aportale@trolltech.com> | 2009-06-09 15:50:13 (GMT) |
commit | 3b4a2650064e1333684d2b2d2c3923d0b798ed82 (patch) | |
tree | cb06f2c14e0e549b71f8a532b79d55f6da7becac /src | |
parent | a1fc8a0ee1a6d1834c396e49fde02718fcad58b4 (diff) | |
download | Qt-3b4a2650064e1333684d2b2d2c3923d0b798ed82.zip Qt-3b4a2650064e1333684d2b2d2c3923d0b798ed82.tar.gz Qt-3b4a2650064e1333684d2b2d2c3923d0b798ed82.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 971ba90..180937f 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); |