diff options
author | Nils Christian Roscher-Nielsen <nils.christian@trolltech.com> | 2009-07-09 15:29:46 (GMT) |
---|---|---|
committer | Nils Christian Roscher-Nielsen <nils.christian@trolltech.com> | 2009-07-09 15:45:18 (GMT) |
commit | 4bec76fceb2297cdbde765b74075046b94bfaf75 (patch) | |
tree | dd550a122e234f660f81f5501fafd9bc71aba7aa /src/gui/widgets/qabstractspinbox.cpp | |
parent | f4fb6207a91b62526b31e0f77c0713bdc243e4f2 (diff) | |
download | Qt-4bec76fceb2297cdbde765b74075046b94bfaf75.zip Qt-4bec76fceb2297cdbde765b74075046b94bfaf75.tar.gz Qt-4bec76fceb2297cdbde765b74075046b94bfaf75.tar.bz2 |
Add the complex control SC_SpinBoxEditField to style option
Reviewed-by: Thierry
Diffstat (limited to 'src/gui/widgets/qabstractspinbox.cpp')
-rw-r--r-- | src/gui/widgets/qabstractspinbox.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qabstractspinbox.cpp b/src/gui/widgets/qabstractspinbox.cpp index da18d13..433406c 100644 --- a/src/gui/widgets/qabstractspinbox.cpp +++ b/src/gui/widgets/qabstractspinbox.cpp @@ -1577,7 +1577,7 @@ void QAbstractSpinBox::initStyleOption(QStyleOptionSpinBox *option) const option->initFrom(this); option->activeSubControls = QStyle::SC_None; option->buttonSymbols = d->buttonSymbols; - option->subControls = QStyle::SC_SpinBoxFrame; + option->subControls = QStyle::SC_SpinBoxFrame | QStyle::SC_SpinBoxEditField; if (d->buttonSymbols != QAbstractSpinBox::NoButtons) { option->subControls |= QStyle::SC_SpinBoxUp | QStyle::SC_SpinBoxDown; if (d->buttonState & Up) { |