summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qabstractspinbox.cpp
diff options
context:
space:
mode:
authorHonglei Zhang <honglei.zhang@nokia.com>2011-07-29 06:57:30 (GMT)
committerHonglei Zhang <honglei.zhang@nokia.com>2011-07-29 06:57:30 (GMT)
commit8e2dc4ac2ec35e9b2f57ade5af390c2d44765382 (patch)
tree3ce2618938f3c5cbef56223e183d4f4006fcf134 /src/gui/widgets/qabstractspinbox.cpp
parent6d2ae84eca2ea4e74a310b4902016151a233ea5d (diff)
parentc9f0c578bbaf73211ad4729e1496e53867a641c9 (diff)
downloadQt-8e2dc4ac2ec35e9b2f57ade5af390c2d44765382.zip
Qt-8e2dc4ac2ec35e9b2f57ade5af390c2d44765382.tar.gz
Qt-8e2dc4ac2ec35e9b2f57ade5af390c2d44765382.tar.bz2
Merge remote-tracking branch 'qt/4.8'
Diffstat (limited to 'src/gui/widgets/qabstractspinbox.cpp')
-rw-r--r--src/gui/widgets/qabstractspinbox.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/widgets/qabstractspinbox.cpp b/src/gui/widgets/qabstractspinbox.cpp
index 4372ae3..7a985a1 100644
--- a/src/gui/widgets/qabstractspinbox.cpp
+++ b/src/gui/widgets/qabstractspinbox.cpp
@@ -1655,6 +1655,8 @@ void QAbstractSpinBox::initStyleOption(QStyleOptionSpinBox *option) const
: (QAbstractSpinBox::StepDownEnabled|QAbstractSpinBox::StepUpEnabled);
option->frame = d->frame;
+ if (d->readOnly)
+ option->state |= QStyle::State_ReadOnly;
}
/*!