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
41class QTreeView;
42
50class QCADGUI_EXPORT RToolMatrixItemDelegate: public QItemDelegate {
51 Q_OBJECT
52public:
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
58private:
59 QTreeView* treeView;
60};
61
63
64#endif
Q_DECLARE_METATYPE(RMath *)
Tree widget item delegate.
Definition RToolMatrixItemDelegate.h:50
QTreeView * treeView
Definition RToolMatrixItemDelegate.h:59
#define QCADGUI_EXPORT
Definition gui_global.h:10