Refresh piece geometry if in test mode.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-02-22 12:19:52 +02:00
parent 81bde9bb95
commit be7d0692a4

View File

@ -236,7 +236,14 @@ void VPattern::Parse(const Document &parse)
}
domNode = domNode.nextSibling();
}
if (qApp->IsGUIMode())
{
QTimer::singleShot(1000, Qt::VeryCoarseTimer, this, SLOT(RefreshPieceGeometry()));
}
else if (qApp->CommandLine()->IsTestModeEnabled())
{
RefreshPieceGeometry();
}
emit CheckLayout();
}