diff options
author | Honglei Zhang <honglei.zhang@nokia.com> | 2011-07-29 06:57:30 (GMT) |
---|---|---|
committer | Honglei Zhang <honglei.zhang@nokia.com> | 2011-07-29 06:57:30 (GMT) |
commit | 8e2dc4ac2ec35e9b2f57ade5af390c2d44765382 (patch) | |
tree | 3ce2618938f3c5cbef56223e183d4f4006fcf134 /src/gui/widgets/qabstractspinbox.cpp | |
parent | 6d2ae84eca2ea4e74a310b4902016151a233ea5d (diff) | |
parent | c9f0c578bbaf73211ad4729e1496e53867a641c9 (diff) | |
download | Qt-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.cpp | 2 |
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; } /*! |