0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-11-25 08:28:06 +03:00

Fix some warnings

This commit is contained in:
Rodrigo Torres
2021-08-17 22:20:38 -03:00
parent df7670d136
commit 9705fb970c
3 changed files with 10 additions and 1 deletions

View File

@@ -42,6 +42,7 @@ QString MarginPropItem::displayValue() const
return QString("%1 %2").arg((propertyValue().toDouble() * Const::mmFACTOR) / (item->unitFactor() * 10), 0, 'f', 2)
.arg(QObject::tr("''"));
}
return QString();
}
QWidget *MarginPropItem::createProperyEditor(QWidget *parent) const
@@ -74,6 +75,7 @@ qreal MarginPropItem::valueInUnits(qreal value) const
case LimeReport::BaseDesignIntf::Inches:
return (value * Const::mmFACTOR) / (item->unitFactor() * 10);
}
return 0;
}
qreal MarginPropItem::valueInReportUnits(qreal value) const
@@ -84,8 +86,8 @@ qreal MarginPropItem::valueInReportUnits(qreal value) const
return value;
case LimeReport::BaseDesignIntf::Inches:
return (value * (item->unitFactor() * 10)) / Const::mmFACTOR;
}
return 0;
}
QString MarginPropItem::unitShortName() const
@@ -97,6 +99,7 @@ QString MarginPropItem::unitShortName() const
case LimeReport::BaseDesignIntf::Inches:
return QObject::tr("''");
}
return QString();
}
} // namespace LimeReport