let pass events of a progress dialog in event filter of WaitCursor
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
# include <QApplication>
|
||||
# include <QDateTime>
|
||||
# include <QMessageBox>
|
||||
# include <QProgressDialog>
|
||||
# ifdef FC_OS_WIN32
|
||||
# include <windows.h>
|
||||
# endif
|
||||
@@ -115,6 +116,9 @@ bool WaitCursorP::isModalDialog(QObject* o) const
|
||||
QMessageBox* dlg = qobject_cast<QMessageBox*>(parent);
|
||||
if (dlg && dlg->isModal())
|
||||
return true;
|
||||
QProgressDialog* pd = qobject_cast<QProgressDialog*>(parent);
|
||||
if (pd)
|
||||
return true;
|
||||
parent = parent->parentWidget();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user