1
0
Fork 0
flightgear/src/GUI/fake_qguiapp_p.h
James Turner 32ff21c1df UI: support OSG multi-threading modes, partially
Requires private header, so might need an additional package installed
on some Unixes.
2020-06-08 22:44:52 +01:00

23 lines
541 B
C++

#pragma once
#include <QPointer>
QT_BEGIN_NAMESPACE
// fake the qguiapplication_p.h header, which is problematic
// to include directly on macOS, becuase we don't synchronize
// our macOS min version with the Qt one. As a result, we
// get errors including the real version. To work around
// this, delcare the one symnbol we need
class Q_GUI_EXPORT QGuiApplicationPrivate
{
public:
#if QT_VERSION < QT_VERSION_CHECK(5, 12,7)
static QWindow* focus_window;
#else
static QPointer<QWindow> focus_window;
#endif
};
QT_END_NAMESPACE