Fix build errors.
This commit is contained in:
parent
7de604a63b
commit
064bd33397
|
@ -460,7 +460,8 @@ auto VPPiece::ClosestDistance(const QVector<QPointF> &path1, const QVector<QPoin
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
auto CalculateClosestDistanceForChunk = [&](const QVector<QPointF> &chunk) -> QLineF
|
std::function<QLineF(const QVector<QPointF> &)> const CalculateClosestDistanceForChunk =
|
||||||
|
[&](const QVector<QPointF> &chunk)
|
||||||
{
|
{
|
||||||
qreal minLocalDistance = std::numeric_limits<qreal>::max();
|
qreal minLocalDistance = std::numeric_limits<qreal>::max();
|
||||||
QLineF localClosestDistance;
|
QLineF localClosestDistance;
|
||||||
|
|
|
@ -887,7 +887,7 @@ void VPMainWindow::InitPropertyTabCurrentPiece()
|
||||||
const QIcon warningIcon = FromTheme(VThemeIcon::DialogWarning);
|
const QIcon warningIcon = FromTheme(VThemeIcon::DialogWarning);
|
||||||
auto WarningIcon = [warningIcon](QLabel *label)
|
auto WarningIcon = [warningIcon](QLabel *label)
|
||||||
{
|
{
|
||||||
const int size = qRound(16 * label->devicePixelRatio());
|
const int size = qRound(16. * label->devicePixelRatio());
|
||||||
label->setPixmap(warningIcon.pixmap(size, size));
|
label->setPixmap(warningIcon.pixmap(size, size));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user