FlightGear next
fake_qguiapp_p.h
Go to the documentation of this file.
1#pragma once
2
3#include <QPointer>
4
5QT_BEGIN_NAMESPACE
6
7// fake the qguiapplication_p.h header, which is problematic
8// to include directly on macOS, becuase we don't synchronize
9// our macOS min version with the Qt one. As a result, we
10// get errors including the real version. To work around
11// this, delcare the one symnbol we need
12class Q_GUI_EXPORT QGuiApplicationPrivate
13{
14public:
15#if QT_VERSION < QT_VERSION_CHECK(5, 12,7)
16 static QWindow* focus_window;
17#else
18 static QPointer<QWindow> focus_window;
19#endif
20};
21
22QT_END_NAMESPACE
23
static QPointer< QWindow > focus_window