Fix build with Qt 5.6.2.
This commit is contained in:
parent
6a87d47697
commit
ae340a0b76
1 changed files with 4 additions and 0 deletions
|
|
@ -16,7 +16,11 @@ namespace Platform {
|
||||||
|
|
||||||
BasicWindowHelper::BasicWindowHelper(not_null<RpWidget*> window)
|
BasicWindowHelper::BasicWindowHelper(not_null<RpWidget*> window)
|
||||||
: _window(window) {
|
: _window(window) {
|
||||||
|
#if (QT_VERSION >= QT_VERSION_CHECK(5, 9, 0))
|
||||||
_window->setWindowFlag(Qt::Window);
|
_window->setWindowFlag(Qt::Window);
|
||||||
|
#else // Qt >= 5.9
|
||||||
|
_window->setWindowFlags(_window->windowFlags() | Qt::Window);
|
||||||
|
#endif // Qt >= 5.9
|
||||||
}
|
}
|
||||||
|
|
||||||
not_null<RpWidget*> BasicWindowHelper::body() {
|
not_null<RpWidget*> BasicWindowHelper::body() {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue