Commit 248275c0 authored by Jaime Torres Amate's avatar Jaime Torres Amate

use parenthesis to indicate the right term priority

the compilers are not as smart as humans are
parent 0cc069aa
......@@ -530,8 +530,8 @@ void SpinBox::initStyleOption(QStyleOptionSpinBox& so) const
{
so.init(this);
// so.activeSubControls = ??;
so.subControls = mUpDownOnly ? QStyle::SC_SpinBoxUp | QStyle::SC_SpinBoxDown | QStyle::SC_SpinBoxFrame
: QStyle::SC_SpinBoxUp | QStyle::SC_SpinBoxDown | QStyle::SC_SpinBoxFrame | QStyle::SC_SpinBoxEditField;
so.subControls = mUpDownOnly ? (QStyle::SC_SpinBoxUp | QStyle::SC_SpinBoxDown | QStyle::SC_SpinBoxFrame)
: (QStyle::SC_SpinBoxUp | QStyle::SC_SpinBoxDown | QStyle::SC_SpinBoxFrame | QStyle::SC_SpinBoxEditField);
so.buttonSymbols = buttonSymbols();
so.frame = hasFrame();
so.stepEnabled = stepEnabled();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment