Fix build with MSVC.

This commit is contained in:
Roman Telezhynskyi 2022-01-31 12:41:46 +02:00
parent 92e7f99e92
commit 5dc07b753a
2 changed files with 5 additions and 5 deletions

View File

@ -811,9 +811,9 @@ auto VWidgetBackgroundImages::CurrentTranslateUnit() const -> Unit
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
auto VWidgetBackgroundImages::CurrentScaleUnit() const -> enum ScaleUnit auto VWidgetBackgroundImages::CurrentScaleUnit() const -> ScaleUnit
{ {
return static_cast<enum ScaleUnit>(ui->comboBoxScaleUnit->currentData().toInt()); return static_cast<ScaleUnit>(ui->comboBoxScaleUnit->currentData().toInt());
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
@ -894,7 +894,7 @@ void VWidgetBackgroundImages::InitImageTranslation()
connect(ui->comboBoxScaleUnit, QOverload<int>::of(&QComboBox::currentIndexChanged), this, connect(ui->comboBoxScaleUnit, QOverload<int>::of(&QComboBox::currentIndexChanged), this,
[this V_LAMBDA_CONSTANTS(minScale, maxScale)]() [this V_LAMBDA_CONSTANTS(minScale, maxScale)]()
{ {
const enum ScaleUnit newUnit = CurrentScaleUnit(); const ScaleUnit newUnit = CurrentScaleUnit();
const qreal oldScaleWidth = ui->doubleSpinBoxScaleWidth->value(); const qreal oldScaleWidth = ui->doubleSpinBoxScaleWidth->value();
const qreal oldScaleHeight = ui->doubleSpinBoxScaleHeight->value(); const qreal oldScaleHeight = ui->doubleSpinBoxScaleHeight->value();

View File

@ -103,8 +103,8 @@ private:
Q_REQUIRED_RESULT auto ImageWidth() const -> qreal; Q_REQUIRED_RESULT auto ImageWidth() const -> qreal;
Q_REQUIRED_RESULT auto ImageHeight() const -> qreal; Q_REQUIRED_RESULT auto ImageHeight() const -> qreal;
Q_REQUIRED_RESULT auto WidthScaleUnitConvertor(qreal value, enum ScaleUnit from, enum ScaleUnit to) const -> qreal; Q_REQUIRED_RESULT auto WidthScaleUnitConvertor(qreal value, ScaleUnit from, ScaleUnit to) const -> qreal;
Q_REQUIRED_RESULT auto HeightScaleUnitConvertor(qreal value, enum ScaleUnit from, enum ScaleUnit to) const -> qreal; Q_REQUIRED_RESULT auto HeightScaleUnitConvertor(qreal value, ScaleUnit from, ScaleUnit to) const -> qreal;
void SetAbsolutePisition(const QUuid &id); void SetAbsolutePisition(const QUuid &id);
}; };