Commit 9cca0a6f authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

effects/blur: Use QGuiApplication::instance() instead of qApp

qApp is defined differently depending on whether QCoreApplication,
QGuiApplication, or QApplication is included.

Use QGuiApplication::instance() to improve code readability.

CCBUG: 450359
parent 4acae79d
......@@ -13,7 +13,7 @@
#include <QGuiApplication>
#include <QMatrix4x4>
#include <QScreen> // for QGuiApplication
#include <QScreen>
#include <QTime>
#include <QTimer>
#include <QWindow>
......@@ -51,7 +51,7 @@ BlurEffect::BlurEffect()
}
if (effects->waylandDisplay()) {
if (!s_blurManagerRemoveTimer) {
s_blurManagerRemoveTimer = new QTimer(qApp);
s_blurManagerRemoveTimer = new QTimer(QCoreApplication::instance());
s_blurManagerRemoveTimer->setSingleShot(true);
s_blurManagerRemoveTimer->callOnTimeout([]() {
s_blurManager->remove();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment