Sine Striker
2023-12-11 b1cc4e7de641a9e6ef866744d7775d45813bad8d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef WINDOWITEMDELEGATE_P_H
#define WINDOWITEMDELEGATE_P_H
 
#include <QtCore/QObject>
#include <QtCore/QPoint>
#include <QtGui/QWindow>
 
#include <QWKCore/qwkcoreglobal.h>
 
namespace QWK {
 
    class QWK_CORE_EXPORT WindowItemDelegate {
    public:
        WindowItemDelegate();
        virtual ~WindowItemDelegate();
 
    public:
        // Item property query
        virtual QWindow *window(const QObject *obj) const = 0;
        virtual bool isEnabled(const QObject *obj) const = 0;
        virtual bool isVisible(const QObject *obj) const = 0;
        virtual QRect mapGeometryToScene(const QObject *obj) const = 0;
 
        // Host property query
        virtual QWindow *hostWindow(const QObject *host) const = 0;
        virtual bool isHostSizeFixed(const QObject *host) const = 0;
        virtual bool isWindowActive(const QObject *host) const = 0;
 
        // Callbacks
        virtual void resetQtGrabbedControl() const;
 
    private:
        Q_DISABLE_COPY_MOVE(WindowItemDelegate)
    };
 
}
 
#endif // WINDOWITEMDELEGATE_P_H