From 4091b18bfef5e1ff8f2924ad18917ebbb14987b0 Mon Sep 17 00:00:00 2001 From: Volker Krause Date: Thu, 30 Dec 2021 19:09:41 +0100 Subject: [PATCH] Source code changes to enable building against Qt6 The needed build system changes aren't included as those require a newer ECM version than required here. --- src/decoratedclient.h | 2 +- src/decoration.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/decoratedclient.h b/src/decoratedclient.h index d275b53..4d7948a 100644 --- a/src/decoratedclient.h +++ b/src/decoratedclient.h @@ -6,6 +6,7 @@ #ifndef KDECORATION2_DECORATED_CLIENT_H #define KDECORATION2_DECORATED_CLIENT_H +#include "decoration.h" #include "decorationdefines.h" #include @@ -20,7 +21,6 @@ namespace KDecoration2 { -class Decoration; class DecorationBridge; class DecoratedClientPrivate; diff --git a/src/decoration.cpp b/src/decoration.cpp index 192fe1f..a21fd9e 100644 --- a/src/decoration.cpp +++ b/src/decoration.cpp @@ -379,7 +379,7 @@ void Decoration::mouseReleaseEvent(QMouseEvent *event) void Decoration::wheelEvent(QWheelEvent *event) { for (DecorationButton *button : d->buttons) { - if (button->contains(event->posF())) { + if (button->contains(event->position())) { QCoreApplication::instance()->sendEvent(button, event); event->setAccepted(true); } -- GitLab