diff --git a/src/blacksim/xplane/xbus/utils.h b/src/blacksim/xplane/xbus/utils.h index afbc317c2..713bb97f6 100644 --- a/src/blacksim/xplane/xbus/utils.h +++ b/src/blacksim/xplane/xbus/utils.h @@ -56,6 +56,9 @@ class QXPlaneMessageHandler } public: + /*! + * Install the handler. + */ static void install() { qInstallMessageHandler(handler); @@ -83,6 +86,11 @@ class QSharedApplication : public QApplication } public: + /*! + * Returns a shared pointer to the QApplication. + * + * The QApplication will not be destroyed while this shared pointer exists. + */ static QSharedPointer sharedInstance() { QSharedPointer ptr; @@ -125,6 +133,10 @@ class QXPlaneEventLoop : public QObject } public: + /*! + * Registers the X-Plane callback which calls into the Qt event loop, + * unless one was already registered. + */ static void exec() { if (! QApplication::instance()->findChild())