5#ifndef WIDGETITEMDELEGATE_P_H
6#define WIDGETITEMDELEGATE_P_H
17#include <QtCore/QObject>
18#include <QtGui/QWindow>
20#include <QWKCore/private/windowitemdelegate_p.h>
21#include <QWKWidgets/qwkwidgetsglobal.h>
25 class QWK_WIDGETS_EXPORT WidgetItemDelegate :
public WindowItemDelegate {
28 ~WidgetItemDelegate()
override;
31 QWindow *window(
const QObject *obj)
const override;
32 bool isEnabled(
const QObject *obj)
const override;
33 bool isVisible(
const QObject *obj)
const override;
34 QRect mapGeometryToScene(
const QObject *obj)
const override;
36 QWindow *hostWindow(
const QObject *host)
const override;
37 bool isWindowActive(
const QObject *host)
const override;
38 Qt::WindowStates getWindowState(
const QObject *host)
const override;
39 Qt::WindowFlags getWindowFlags(
const QObject *host)
const override;
40 QRect getGeometry(
const QObject *host)
const override;
42 void resetQtGrabbedControl(QObject *host)
const override;
43 void setWindowState(QObject *host, Qt::WindowStates state)
const override;
44 void setCursorShape(QObject *host, Qt::CursorShape shape)
const override;
45 void restoreCursorShape(QObject *host)
const override;
46 void setWindowFlags(QObject *host, Qt::WindowFlags flags)
const override;
47 void setWindowVisible(QObject *host,
bool visible)
const override;
48 void setGeometry(QObject *host,
const QRect &rect)
override;
49 void bringWindowToTop(QObject *host)
const override;
51 WinIdChangeEventFilter *
52 createWinIdEventFilter(QObject *host, AbstractWindowContext *context)
const override;
QWindowKit namespace.
Definition abstractwindowcontext.cpp:13