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());
|
||||
}
|
||||
|
||||
#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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user