Remove reference to QApplication
This commit is contained in:
parent
4b74e83fb2
commit
3994890bff
@ -24,9 +24,7 @@
|
|||||||
#include "dialogshadows_p.h"
|
#include "dialogshadows_p.h"
|
||||||
#include "view.h"
|
#include "view.h"
|
||||||
|
|
||||||
#include <QApplication>
|
|
||||||
#include <QQuickItem>
|
#include <QQuickItem>
|
||||||
#include <QDesktopWidget>
|
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QLayout>
|
#include <QLayout>
|
||||||
#include <QScreen>
|
#include <QScreen>
|
||||||
@ -480,7 +478,7 @@ Dialog::Dialog(QQuickItem *parent)
|
|||||||
|
|
||||||
Dialog::~Dialog()
|
Dialog::~Dialog()
|
||||||
{
|
{
|
||||||
if (!qApp->closingDown()) {
|
if (!QCoreApplication::instance()->closingDown()) {
|
||||||
DialogShadows::self()->removeWindow(this);
|
DialogShadows::self()->removeWindow(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user