Fix compatibility with Qt 5.6.
This commit is contained in:
parent
c8fe11c291
commit
427c62efe3
|
@ -1010,31 +1010,31 @@ auto MApplication::StartWithMeasurementFiles(QCommandLineParser &parser) -> bool
|
||||||
[this, flagDimensionA, flagDimensionB, flagDimensionC, flagUnits, dimensionAValue,
|
[this, flagDimensionA, flagDimensionB, flagDimensionC, flagUnits, dimensionAValue,
|
||||||
dimensionBValue, dimensionCValue, unit](const auto &arg)
|
dimensionBValue, dimensionCValue, unit](const auto &arg)
|
||||||
{
|
{
|
||||||
NewMainTapeWindow();
|
this->NewMainTapeWindow();
|
||||||
if (not MainTapeWindow()->LoadFile(arg))
|
if (not this->MainTapeWindow()->LoadFile(arg))
|
||||||
{
|
{
|
||||||
delete MainTapeWindow();
|
delete this->MainTapeWindow();
|
||||||
return !m_testMode;
|
return !m_testMode;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (flagDimensionA)
|
if (flagDimensionA)
|
||||||
{
|
{
|
||||||
MainTapeWindow()->SetDimensionABase(dimensionAValue);
|
this->MainTapeWindow()->SetDimensionABase(dimensionAValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (flagDimensionB)
|
if (flagDimensionB)
|
||||||
{
|
{
|
||||||
MainTapeWindow()->SetDimensionBBase(dimensionBValue);
|
this->MainTapeWindow()->SetDimensionBBase(dimensionBValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (flagDimensionC)
|
if (flagDimensionC)
|
||||||
{
|
{
|
||||||
MainTapeWindow()->SetDimensionCBase(dimensionCValue);
|
this->MainTapeWindow()->SetDimensionCBase(dimensionCValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (flagUnits)
|
if (flagUnits)
|
||||||
{
|
{
|
||||||
MainTapeWindow()->SetPUnit(unit);
|
this->MainTapeWindow()->SetPUnit(unit);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user