Sine Striker
2023-12-05 f8975a7d449bac21a2fdbc1a8ca85d1f5b99b362
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)