5#ifndef WINDOWITEMDELEGATE_P_H
6#define WINDOWITEMDELEGATE_P_H
17#include <QtCore/QObject>
18#include <QtCore/QPoint>
19#include <QtGui/QWindow>
21#include <QWKCore/private/winidchangeeventfilter_p.h>
22#include <QWKCore/qwkglobal.h>
26 class QWK_CORE_EXPORT WindowItemDelegate {
29 virtual ~WindowItemDelegate();
33 virtual QWindow *window(
const QObject *obj)
const = 0;
34 virtual bool isEnabled(
const QObject *obj)
const = 0;
35 virtual bool isVisible(
const QObject *obj)
const = 0;
36 virtual QRect mapGeometryToScene(
const QObject *obj)
const = 0;
39 virtual QWindow *hostWindow(
const QObject *host)
const = 0;
40 virtual bool isWindowActive(
const QObject *host)
const = 0;
41 virtual Qt::WindowStates getWindowState(
const QObject *host)
const = 0;
42 virtual Qt::WindowFlags getWindowFlags(
const QObject *host)
const = 0;
43 virtual QRect getGeometry(
const QObject *host)
const = 0;
46 virtual void resetQtGrabbedControl(QObject *host)
const;
47 virtual void setWindowState(QObject *host, Qt::WindowStates state)
const = 0;
48 virtual void setCursorShape(QObject *host, Qt::CursorShape shape)
const = 0;
49 virtual void restoreCursorShape(QObject *host)
const = 0;
50 virtual void setWindowFlags(QObject *host, Qt::WindowFlags flags)
const = 0;
51 virtual void setWindowVisible(QObject *host,
bool visible)
const = 0;
52 virtual void setGeometry(QObject *host,
const QRect &rect) = 0;
53 virtual void bringWindowToTop(QObject *host)
const = 0;
56 virtual WinIdChangeEventFilter *
57 createWinIdEventFilter(QObject *host, AbstractWindowContext *context)
const;
60 Q_DISABLE_COPY(WindowItemDelegate)
QWindowKit namespace.
Definition abstractwindowcontext.cpp:13