Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 4026 → Rev 4027

/branches/Version13x/Scribus/scribus/mspinbox.cpp
121,7 → 121,9
if (readOnly)
return false;
QWheelEvent* k = (QWheelEvent*)ev;
if (k->state() & ShiftButton)
bool shiftB=k->state() & ShiftButton;
bool controlB=k->state() & ControlButton;
if (shiftB && !controlB)
{
setLineStep(QMAX(Decimals / 10, 1));
retval = true;
128,7 → 130,7
qApp->sendEvent( this, ev );
return retval;
}
else if (k->state() & ControlButton)
else if (!shiftB && controlB)
{
setLineStep(QMAX(Decimals * 10, 1));
retval = true;
135,13 → 137,21
qApp->sendEvent( this, ev );
return retval;
}
if ((!(k->state() & ShiftButton)) && (!(k->state() & ControlButton)))
else if (shiftB && controlB)
{
setLineStep(QMAX(Decimals / 100, 1));
retval = true;
qApp->sendEvent( this, ev );
return retval;
}
else
if (!shiftB && !controlB)
{
setLineStep(Decimals);
retval = true;
qApp->sendEvent( this, ev );
return retval;
}
}
}
return QSpinBox::eventFilter(ob, ev);
}