mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
fixed compile on unix
This commit is contained in:
parent
e1a9a437f1
commit
3404cc503c
1 changed files with 3 additions and 3 deletions
|
@ -363,7 +363,7 @@ void BaseWindow::onFocusLost()
|
||||||
void BaseWindow::mousePressEvent(QMouseEvent *event)
|
void BaseWindow::mousePressEvent(QMouseEvent *event)
|
||||||
{
|
{
|
||||||
#ifndef Q_OS_WIN
|
#ifndef Q_OS_WIN
|
||||||
if (this->flags_ & FramelessDraggable)
|
if (this->flags_.has(FramelessDraggable))
|
||||||
{
|
{
|
||||||
this->movingRelativePos = event->localPos();
|
this->movingRelativePos = event->localPos();
|
||||||
if (auto widget =
|
if (auto widget =
|
||||||
|
@ -399,7 +399,7 @@ void BaseWindow::mousePressEvent(QMouseEvent *event)
|
||||||
void BaseWindow::mouseReleaseEvent(QMouseEvent *event)
|
void BaseWindow::mouseReleaseEvent(QMouseEvent *event)
|
||||||
{
|
{
|
||||||
#ifndef Q_OS_WIN
|
#ifndef Q_OS_WIN
|
||||||
if (this->flags_ & FramelessDraggable)
|
if (this->flags_.has(FramelessDraggable))
|
||||||
{
|
{
|
||||||
if (this->moving)
|
if (this->moving)
|
||||||
{
|
{
|
||||||
|
@ -415,7 +415,7 @@ void BaseWindow::mouseReleaseEvent(QMouseEvent *event)
|
||||||
void BaseWindow::mouseMoveEvent(QMouseEvent *event)
|
void BaseWindow::mouseMoveEvent(QMouseEvent *event)
|
||||||
{
|
{
|
||||||
#ifndef Q_OS_WIN
|
#ifndef Q_OS_WIN
|
||||||
if (this->flags_ & FramelessDraggable)
|
if (this->flags_.has(FramelessDraggable))
|
||||||
{
|
{
|
||||||
if (this->moving)
|
if (this->moving)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue