We don't need variable points in method Square
--HG-- branch : feature
This commit is contained in:
parent
6c653163f9
commit
3e9793dbbb
|
@ -288,8 +288,7 @@ qint64 VLayoutDetail::Square() const
|
|||
return 0;
|
||||
}
|
||||
|
||||
const QVector<QPointF> points = d->layoutAllowence;
|
||||
const qreal res = SumTrapezoids(points);
|
||||
const qreal res = SumTrapezoids(d->layoutAllowence);
|
||||
|
||||
const qint64 sq = qFloor(qAbs(res/2.0));
|
||||
return sq;
|
||||
|
|
|
@ -463,7 +463,7 @@ bool DialogDetail::DetailIsValid() const
|
|||
QByteArray byteArray;
|
||||
QBuffer buffer(&byteArray);
|
||||
pixmap.save(&buffer, "PNG");
|
||||
QString url = QString("<img src=\"data:image/png;base64,") + byteArray.toBase64() + "\"/> ";
|
||||
QString url = QString("<img src=\"data:image/png;base64,") + byteArray.toBase64() + QLatin1Literal("\"/> ");
|
||||
|
||||
if (ui.listWidget->count() < 3)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user