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. * @param sceneDetail pointer to details scene.
*/ */
void VPattern::Parse(const Document::Documents &parse) void VPattern::Parse(const Document::Documents &parse)
{
if (parse == Document::FullParse)
{ {
#ifndef QT_NO_CURSOR #ifndef QT_NO_CURSOR
QApplication::setOverrideCursor(Qt::WaitCursor); QApplication::setOverrideCursor(Qt::WaitCursor);
#endif #endif
}
SCASSERT(sceneDraw != nullptr); SCASSERT(sceneDraw != nullptr);
SCASSERT(sceneDetail != nullptr); SCASSERT(sceneDetail != nullptr);
PrepareForParse(parse); PrepareForParse(parse);
@ -300,10 +303,13 @@ void VPattern::Parse(const Document::Documents &parse)
} }
domNode = domNode.nextSibling(); domNode = domNode.nextSibling();
} }
if (parse == Document::FullParse)
{
#ifndef QT_NO_CURSOR #ifndef QT_NO_CURSOR
QApplication::restoreOverrideCursor(); QApplication::restoreOverrideCursor();
#endif #endif
} }
}
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
/** /**