From 9b1599d82e86d2d0463b60fe6fa61f94be50f983 Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <zhaoyuhang@rankyee.com> Date: 周二, 05 12月 2023 14:48:52 +0800 Subject: [PATCH] port some more code (for os < win10) --- src/core/windowitemdelegate.h | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/core/windowitemdelegate.h b/src/core/windowitemdelegate.h index fe9a252..5794851 100644 --- a/src/core/windowitemdelegate.h +++ b/src/core/windowitemdelegate.h @@ -2,22 +2,28 @@ #define WINDOWITEMDELEGATE_H #include <QtCore/QObject> +#include <QtCore/QPoint> #include <QtGui/QWindow> -#include <QWKCore/qwkcoreglobal.h> +#include <QWKCore/corewindowagent.h> namespace QWK { - class WindowItemDelegate { + class QWK_CORE_EXPORT WindowItemDelegate { public: - WindowItemDelegate() = default; - virtual ~WindowItemDelegate() = default; + WindowItemDelegate(); + virtual ~WindowItemDelegate(); public: virtual QWindow *window(QObject *obj) const = 0; + // Property query virtual bool isEnabled(QObject *obj) const = 0; virtual bool isVisible(QObject *obj) const = 0; + virtual QRect mapGeometryToScene(const QObject *obj) const = 0; + + // Callbacks + virtual bool resetQtGrabbedControl() const; private: Q_DISABLE_COPY_MOVE(WindowItemDelegate) -- Gitblit v1.9.1