Show wait cursor only in full parse mode.
--HG-- branch : feature
This commit is contained in:
parent
b646a11bc0
commit
40993fd7ba
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user