| | |
| | | #ifndef WINDOWITEMDELEGATE_H |
| | | #define WINDOWITEMDELEGATE_H |
| | | |
| | | #include <memory> |
| | | |
| | | #include <QtCore/QObject> |
| | | #include <QtGui/QWindow> |
| | | |
| | |
| | | namespace QWK { |
| | | |
| | | class WindowItemDelegate { |
| | | Q_DISABLE_COPY(WindowItemDelegate) |
| | | |
| | | public: |
| | | WindowItemDelegate() = default; |
| | | virtual ~WindowItemDelegate() = default; |
| | |
| | | |
| | | virtual bool isEnabled(QObject *obj) const = 0; |
| | | virtual bool isVisible(QObject *obj) const = 0; |
| | | }; |
| | | |
| | | using WindowItemDelegatePtr = std::shared_ptr<WindowItemDelegate>; |
| | | private: |
| | | Q_DISABLE_COPY_MOVE(WindowItemDelegate) |
| | | }; |
| | | |
| | | } |
| | | |