From de3e3d6bff2b585524cd504cf052cf181a6c2eae Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Mon, 15 Jun 2009 23:29:19 +0200 Subject: Fix commit 82e19a10f13005a327b134999315ecf39d5d70e3 --- src/gui/styles/qs60style.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp index 29827b7..d2bd679 100644 --- a/src/gui/styles/qs60style.cpp +++ b/src/gui/styles/qs60style.cpp @@ -2038,12 +2038,12 @@ void QS60Style::drawPrimitive(PrimitiveElement element, const QStyleOption *opti #endif //QT_NO_SPINBOX case PE_FrameFocusRect: // Calendar widget and combox both do not use styled itemDelegate - if (!(false + if (widget && !(false #ifndef QT_NO_CALENDARWIDGET - || (widget && qobject_cast(widget->parent())) + || qobject_cast(widget->parent()) #endif //QT_NO_CALENDARWIDGET #ifndef QT_NO_COMBOBOX - || (qobject_cast(widget)) + || qobject_cast(widget) #endif //QT_NO_COMBOBOX )) { // no focus selection for touch @@ -2322,7 +2322,7 @@ int QS60Style::styleHint(StyleHint sh, const QStyleOption *opt, const QWidget *w break; case SH_UnderlineShortcut: retValue = 0; - break; + break; default: break; } -- cgit v0.12