From 9cca0a6f85caf164ebfbf344dfa740a862d93043 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Wed, 16 Feb 2022 10:19:43 +0200 Subject: [PATCH] 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 --- src/effects/blur/blur.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/effects/blur/blur.cpp b/src/effects/blur/blur.cpp index 70d6344c43..a451c15ea3 100644 --- a/src/effects/blur/blur.cpp +++ b/src/effects/blur/blur.cpp @@ -13,7 +13,7 @@ #include #include -#include // for QGuiApplication +#include #include #include #include @@ -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();