OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
PropertyGridItemDelegate.h
Go to the documentation of this file.
1
4// ###########################################################################################################################################################################################################################################################################################################################
5
6#pragma once
7
8// OpenTwin header
11
12// Qt header
13#include <QtWidgets/qstyleditemdelegate.h>
14
15namespace ot {
16
17 class TreeWidget;
18
19 class PropertyGridItemDelegate : public QStyledItemDelegate {
21 public:
24
25 virtual void paint(QPainter* _painter, const QStyleOptionViewItem& _option, const QModelIndex& _index) const override;
26
27 private:
28 TreeWidget* m_tree;
29
30 PropertyGridItemDelegate() = delete;
31 };
32
33}
This file contains defines that may be used simplyfy class creation.
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
Definition PropertyGridItemDelegate.h:19
virtual ~PropertyGridItemDelegate()
Definition PropertyGridItemDelegate.cpp:24
virtual void paint(QPainter *_painter, const QStyleOptionViewItem &_option, const QModelIndex &_index) const override
Definition PropertyGridItemDelegate.cpp:28
Definition TreeWidget.h:23
Definition Connector.h:8