QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
RToolMatrixItemDelegate.h
Go to the documentation of this file.
1
32
#ifndef RTOOLMATRIXITEMDELEGATE_H_
33
#define RTOOLMATRIXITEMDELEGATE_H_
34
35
#include "
gui_global.h
"
36
37
#include <QItemDelegate>
38
#include <QMetaType>
39
#include <QTreeView>
40
41
class
QTreeView;
42
50
class
QCADGUI_EXPORT
RToolMatrixItemDelegate
:
public
QItemDelegate {
51
Q_OBJECT
52
public
:
53
RToolMatrixItemDelegate
(QTreeView* view, QWidget* parent);
54
55
void
paint(QPainter* painter,
const
QStyleOptionViewItem& option,
const
QModelIndex& index)
const
;
56
QSize sizeHint(
const
QStyleOptionViewItem& opt,
const
QModelIndex& index)
const
;
57
58
private
:
59
QTreeView*
treeView
;
60
};
61
62
Q_DECLARE_METATYPE
(
RToolMatrixItemDelegate
*)
63
64
#endif
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(RMath *)
RToolMatrixItemDelegate
Tree widget item delegate.
Definition
RToolMatrixItemDelegate.h:50
RToolMatrixItemDelegate::treeView
QTreeView * treeView
Definition
RToolMatrixItemDelegate.h:59
gui_global.h
QCADGUI_EXPORT
#define QCADGUI_EXPORT
Definition
gui_global.h:10
src
gui
RToolMatrixItemDelegate.h
Generated on Fri Jul 18 2025 09:41:51 for QCAD by
1.10.0