Fix build with MSVC.
This commit is contained in:
parent
92e7f99e92
commit
5dc07b753a
|
@ -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,
|
||||
[this V_LAMBDA_CONSTANTS(minScale, maxScale)]()
|
||||
{
|
||||
const enum ScaleUnit newUnit = CurrentScaleUnit();
|
||||
const ScaleUnit newUnit = CurrentScaleUnit();
|
||||
const qreal oldScaleWidth = ui->doubleSpinBoxScaleWidth->value();
|
||||
const qreal oldScaleHeight = ui->doubleSpinBoxScaleHeight->value();
|
||||
|
||||
|
|
|
@ -103,8 +103,8 @@ private:
|
|||
Q_REQUIRED_RESULT auto ImageWidth() 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 HeightScaleUnitConvertor(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, ScaleUnit from, ScaleUnit to) const -> qreal;
|
||||
|
||||
void SetAbsolutePisition(const QUuid &id);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user