[GUI] Remove code for Qt < 5.9
This commit is contained in:
@@ -35,9 +35,8 @@
|
||||
# include <QTimer>
|
||||
#endif
|
||||
|
||||
#if QT_VERSION >= 0x050000
|
||||
# include <QWindow>
|
||||
#endif
|
||||
#include <QWindow>
|
||||
|
||||
|
||||
#include "ProgressBar.h"
|
||||
#include "ProgressDialog.h"
|
||||
@@ -68,13 +67,11 @@ struct ProgressBarPrivate
|
||||
bool isModalDialog(QObject* o) const
|
||||
{
|
||||
QWidget* parent = qobject_cast<QWidget*>(o);
|
||||
#if QT_VERSION >= 0x050000
|
||||
if (!parent) {
|
||||
QWindow* window = qobject_cast<QWindow*>(o);
|
||||
if (window)
|
||||
parent = QWidget::find(window->winId());
|
||||
}
|
||||
#endif
|
||||
while (parent) {
|
||||
QMessageBox* dlg = qobject_cast<QMessageBox*>(parent);
|
||||
if (dlg && dlg->isModal())
|
||||
|
||||
Reference in New Issue
Block a user