diff --git a/ScreenPlayWallpaper/src/macwindow.cpp b/ScreenPlayWallpaper/src/macwindow.cpp index d918e5cc..1997a86e 100644 --- a/ScreenPlayWallpaper/src/macwindow.cpp +++ b/ScreenPlayWallpaper/src/macwindow.cpp @@ -74,6 +74,11 @@ void MacWindow::destroyThis() QCoreApplication::quit(); } +void MacWindow::terminate() +{ + destroyThis(); +} + void MacWindow::clearComponentCache() { m_window.engine()->clearComponentCache(); diff --git a/ScreenPlayWallpaper/src/macwindow.h b/ScreenPlayWallpaper/src/macwindow.h index 56470d25..7204afb7 100644 --- a/ScreenPlayWallpaper/src/macwindow.h +++ b/ScreenPlayWallpaper/src/macwindow.h @@ -65,6 +65,7 @@ signals: public slots: void setVisible(bool show) override; void destroyThis() override; + void terminate(); void clearComponentCache() override; private: