refs #204 doxygen comments

This commit is contained in:
Mathew Sutcliffe
2014-04-03 17:39:51 +01:00
committed by Klaus Basan
parent 86e002fff5
commit 7fae60a510

View File

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