Show wait cursor only in full parse mode.

--HG--
branch : feature
This commit is contained in:
dismine 2014-06-05 14:47:37 +03:00
parent b646a11bc0
commit 40993fd7ba

View file

@ -242,9 +242,12 @@ bool VPattern::SetNameDraw(const QString &name)
*/
void VPattern::Parse(const Document::Documents &parse)
{
if (parse == Document::FullParse)
{
#ifndef QT_NO_CURSOR
QApplication::setOverrideCursor(Qt::WaitCursor);
#endif
}
SCASSERT(sceneDraw != nullptr);
SCASSERT(sceneDetail != nullptr);
PrepareForParse(parse);
@ -300,9 +303,12 @@ void VPattern::Parse(const Document::Documents &parse)
}
domNode = domNode.nextSibling();
}
if (parse == Document::FullParse)
{
#ifndef QT_NO_CURSOR
QApplication::restoreOverrideCursor();
#endif
}
}
//---------------------------------------------------------------------------------------------------------------------