Refactoring.
--HG-- branch : release
This commit is contained in:
parent
bab0adfebc
commit
c2609b98be
|
@ -190,14 +190,7 @@ bool VMeasurement::IsGradationSizeValid(const QString &size)
|
||||||
if (not size.isEmpty())
|
if (not size.isEmpty())
|
||||||
{
|
{
|
||||||
const QStringList sizes = VMeasurement::WholeListSizes(Unit::Cm);
|
const QStringList sizes = VMeasurement::WholeListSizes(Unit::Cm);
|
||||||
if (sizes.contains(size))
|
return sizes.contains(size);
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -211,14 +204,7 @@ bool VMeasurement::IsGradationHeightValid(const QString &height)
|
||||||
if (not height.isEmpty())
|
if (not height.isEmpty())
|
||||||
{
|
{
|
||||||
const QStringList heights = VMeasurement::WholeListHeights(Unit::Cm);
|
const QStringList heights = VMeasurement::WholeListHeights(Unit::Cm);
|
||||||
if (heights.contains(height))
|
return heights.contains(height);
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user