diff --git a/src/util/scopedoverridecursor.h b/src/util/scopedoverridecursor.h index af08eb50d3de..057ff0c10c45 100644 --- a/src/util/scopedoverridecursor.h +++ b/src/util/scopedoverridecursor.h @@ -1,16 +1,16 @@ #pragma once -#include +#include class ScopedOverrideCursor { public: inline explicit ScopedOverrideCursor(const QCursor& cursor) { - QApplication::setOverrideCursor(cursor); - QApplication::processEvents(); + QGuiApplication::setOverrideCursor(cursor); + QGuiApplication::processEvents(); } inline virtual ~ScopedOverrideCursor() { - QApplication::restoreOverrideCursor(); + QGuiApplication::restoreOverrideCursor(); } };