[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.
This commit is contained in:
Martin Gräßlin 2014-01-09 14:47:57 +01:00
parent 81ef314bdd
commit dda4f32e09

5
main.h
View file

@ -83,6 +83,11 @@ private:
static int crashes;
};
inline static Application *kwinApp()
{
return static_cast<Application*>(QCoreApplication::instance());
}
} // namespace
#endif