From 3404cc503c861109ddb5676aceb83e48c45afe87 Mon Sep 17 00:00:00 2001 From: fourtf Date: Sun, 8 Sep 2019 22:01:14 +0200 Subject: [PATCH] fixed compile on unix --- lib/appbase/widgets/BaseWindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/appbase/widgets/BaseWindow.cpp b/lib/appbase/widgets/BaseWindow.cpp index bc3cc16a1..0239bf269 100644 --- a/lib/appbase/widgets/BaseWindow.cpp +++ b/lib/appbase/widgets/BaseWindow.cpp @@ -363,7 +363,7 @@ void BaseWindow::onFocusLost() void BaseWindow::mousePressEvent(QMouseEvent *event) { #ifndef Q_OS_WIN - if (this->flags_ & FramelessDraggable) + if (this->flags_.has(FramelessDraggable)) { this->movingRelativePos = event->localPos(); if (auto widget = @@ -399,7 +399,7 @@ void BaseWindow::mousePressEvent(QMouseEvent *event) void BaseWindow::mouseReleaseEvent(QMouseEvent *event) { #ifndef Q_OS_WIN - if (this->flags_ & FramelessDraggable) + if (this->flags_.has(FramelessDraggable)) { if (this->moving) { @@ -415,7 +415,7 @@ void BaseWindow::mouseReleaseEvent(QMouseEvent *event) void BaseWindow::mouseMoveEvent(QMouseEvent *event) { #ifndef Q_OS_WIN - if (this->flags_ & FramelessDraggable) + if (this->flags_.has(FramelessDraggable)) { if (this->moving) {