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

@ -241,10 +241,13 @@ bool VPattern::SetNameDraw(const QString &name)
* @param sceneDetail pointer to details scene.
*/
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,10 +303,13 @@ void VPattern::Parse(const Document::Documents &parse)
}
domNode = domNode.nextSibling();
}
if (parse == Document::FullParse)
{
#ifndef QT_NO_CURSOR
QApplication::restoreOverrideCursor();
#endif
}
}
//---------------------------------------------------------------------------------------------------------------------
/**