summaryrefslogtreecommitdiffstats
path: root/src/widgets/qspinwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/qspinwidget.cpp')
-rw-r--r--src/widgets/qspinwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/qspinwidget.cpp b/src/widgets/qspinwidget.cpp
index 427f710..30cf05e 100644
--- a/src/widgets/qspinwidget.cpp
+++ b/src/widgets/qspinwidget.cpp
@@ -323,7 +323,7 @@ void QSpinWidget::paintEvent( QPaintEvent * )
QStyle::SFlags flags = QStyle::Style_Default;
if (isEnabled())
flags |= QStyle::Style_Enabled;
- if (hasFocus() || focusProxy() && focusProxy()->hasFocus())
+ if (hasFocus() || (focusProxy() && focusProxy()->hasFocus()))
flags |= QStyle::Style_HasFocus;
QStyle::SCFlags active;