Fix build with Qt 5.6.2.

This commit is contained in:
John Preston 2020-10-07 18:17:37 +03:00
parent 6a87d47697
commit ae340a0b76

View file

@ -16,7 +16,11 @@ namespace Platform {
BasicWindowHelper::BasicWindowHelper(not_null<RpWidget*> window)
: _window(window) {
#if (QT_VERSION >= QT_VERSION_CHECK(5, 9, 0))
_window->setWindowFlag(Qt::Window);
#else // Qt >= 5.9
_window->setWindowFlags(_window->windowFlags() | Qt::Window);
#endif // Qt >= 5.9
}
not_null<RpWidget*> BasicWindowHelper::body() {