QCAD
Open Source 2D CAD
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 <QTreeWidget>
40 #include <QTreeWidgetItem>
41 #include <QWidget>
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 
63 
64 #endif
#define QCADGUI_EXPORT
Definition: gui_global.h:10
Q_DECLARE_METATYPE(RMath *)
Copyright (C) 2015 The Qt Company Ltd.
Definition: RToolMatrixItemDelegate.h:50
QTreeView * treeView
Definition: RToolMatrixItemDelegate.h:59