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