mirror of
https://github.com/Fishwaldo/ozw-admin.git
synced 2025-03-15 19:31:38 +00:00
18 lines
525 B
C++
18 lines
525 B
C++
#ifndef NODE_DELEGATE_H
|
|
#define NODE_DELEGATE_H
|
|
|
|
#include <QStyledItemDelegate>
|
|
#include <QComboBox>
|
|
#include <QCheckBox>
|
|
#include <QSpinBox>
|
|
|
|
class Node_Delegate : public QStyledItemDelegate
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit Node_Delegate(QObject *parent = nullptr);
|
|
virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
|
|
virtual QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override;
|
|
};
|
|
|
|
#endif // NODE_DELEGATE_H
|