From dda4f32e091e5f8b2b546be8f093c489e73556e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 9 Jan 2014 14:47:57 +0100 Subject: [PATCH] [kwin] Add a static kwinApp method to get a pointer to KWin::Application The idea is that we can use the Application instance as a place to put global information which should not go into kwinglobals. That is core global things. --- main.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.h b/main.h index 0dae97c42a..22179babc9 100644 --- a/main.h +++ b/main.h @@ -83,6 +83,11 @@ private: static int crashes; }; +inline static Application *kwinApp() +{ + return static_cast(QCoreApplication::instance()); +} + } // namespace #endif