Fix build on Qt 5.2.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-02-24 08:34:49 +02:00
parent 8224c437d7
commit d5b50a7850

View File

@ -1347,9 +1347,10 @@ void VToolSeamAllowance::RefreshGeometry(bool updateChildren)
m_seamAllowance->setPath(QPainterPath());
}
#if QT_VERSION >= QT_VERSION_CHECK(5, 4, 0)
if (qApp->IsAppInGUIMode())
{
QTimer::singleShot(100, this, [this, updateChildren]()
QTimer::singleShot(100, Qt::CoarseTimer, this, [this, updateChildren]()
{
this->setFlag(QGraphicsItem::ItemSendsGeometryChanges, false);
UpdateDetailLabel();
@ -1374,6 +1375,16 @@ void VToolSeamAllowance::RefreshGeometry(bool updateChildren)
UpdateInternalPaths();
}
}
#else
UpdateDetailLabel();
UpdatePatternInfo();
UpdateGrainline();
UpdateExcludeState();
if (updateChildren)
{
UpdateInternalPaths();
}
#endif
m_passmarks->setPath(futurePassmarks.result());