Fix build on Qt 5.2.
--HG-- branch : develop
This commit is contained in:
parent
8224c437d7
commit
d5b50a7850
|
@ -1347,9 +1347,10 @@ void VToolSeamAllowance::RefreshGeometry(bool updateChildren)
|
||||||
m_seamAllowance->setPath(QPainterPath());
|
m_seamAllowance->setPath(QPainterPath());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 4, 0)
|
||||||
if (qApp->IsAppInGUIMode())
|
if (qApp->IsAppInGUIMode())
|
||||||
{
|
{
|
||||||
QTimer::singleShot(100, this, [this, updateChildren]()
|
QTimer::singleShot(100, Qt::CoarseTimer, this, [this, updateChildren]()
|
||||||
{
|
{
|
||||||
this->setFlag(QGraphicsItem::ItemSendsGeometryChanges, false);
|
this->setFlag(QGraphicsItem::ItemSendsGeometryChanges, false);
|
||||||
UpdateDetailLabel();
|
UpdateDetailLabel();
|
||||||
|
@ -1374,6 +1375,16 @@ void VToolSeamAllowance::RefreshGeometry(bool updateChildren)
|
||||||
UpdateInternalPaths();
|
UpdateInternalPaths();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
UpdateDetailLabel();
|
||||||
|
UpdatePatternInfo();
|
||||||
|
UpdateGrainline();
|
||||||
|
UpdateExcludeState();
|
||||||
|
if (updateChildren)
|
||||||
|
{
|
||||||
|
UpdateInternalPaths();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
m_passmarks->setPath(futurePassmarks.result());
|
m_passmarks->setPath(futurePassmarks.result());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user