Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 67 → Rev 68

/trunk/Scribus/scribus/mspinbox.cpp
67,13 → 67,22
 
QString MSpinBox::mapValueToText(int value)
{
return QString::number(static_cast<double>(value) / Decimals,
'f', Width);
int dez;
if (Width == 1)
dez = 10;
else
dez = 100;
return QString::number(static_cast<double>(value) / dez, 'f', Width);
}
 
int MSpinBox::mapTextToValue(bool *)
{
return int(qRound(text().toFloat()*Decimals));
int dez;
if (Width == 1)
dez = 10;
else
dez = 100;
return int(qRound(text().toFloat()*dez));
}
 
void MSpinBox::setDecimals(int deci)