+ improve whitespaces
This commit is contained in:
parent
d13946da11
commit
f3b150c3ea
|
@ -224,7 +224,6 @@ void InputField::setToLastUsedValue(void)
|
|||
this->setValue(Base::Quantity::parse(hist[0]));
|
||||
}
|
||||
|
||||
|
||||
void InputField::pushToSavedValues(const QString &valueq)
|
||||
{
|
||||
std::string value;
|
||||
|
@ -269,7 +268,6 @@ std::vector<QString> InputField::getSavedValues(void)
|
|||
/** Sets the preference path to \a path. */
|
||||
void InputField::setParamGrpPath( const QByteArray& path )
|
||||
{
|
||||
|
||||
_handle = App::GetApplication().GetParameterGroupByPath( path);
|
||||
if (_handle.isValid())
|
||||
sGroupString = (const char*)path;
|
||||
|
@ -293,7 +291,7 @@ void InputField::setValue(const Base::Quantity& quant)
|
|||
if (actQuantity.getValue() < Minimum)
|
||||
actQuantity.setValue(Minimum);
|
||||
|
||||
if(!quant.getUnit().isEmpty())
|
||||
if (!quant.getUnit().isEmpty())
|
||||
actUnit = quant.getUnit();
|
||||
|
||||
double dFactor;
|
||||
|
@ -306,8 +304,6 @@ void InputField::setUnit(const Base::Unit& unit)
|
|||
actUnit = unit;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// get the value of the singleStep property
|
||||
double InputField::singleStep(void)const
|
||||
{
|
||||
|
@ -364,6 +360,7 @@ int InputField::historySize(void)const
|
|||
{
|
||||
return HistorySize;
|
||||
}
|
||||
|
||||
// set the value of the minimum property
|
||||
void InputField::setHistorySize(int i)
|
||||
{
|
||||
|
@ -382,7 +379,6 @@ void InputField::selectNumber(void)
|
|||
i++;
|
||||
|
||||
setSelection(0,i);
|
||||
|
||||
}
|
||||
|
||||
void InputField::keyPressEvent(QKeyEvent *event)
|
||||
|
@ -416,6 +412,7 @@ void InputField::wheelEvent (QWheelEvent * event)
|
|||
this->setText( QString::fromUtf8("%L1 %2").arg(val).arg(actUnitStr));
|
||||
event->accept();
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user