Files
BudgetPro/itemrichtextdelegate.h
T

24 lines
755 B
C++
Raw Normal View History

2026-05-24 23:21:33 +02:00
#ifndef ITEMRICHTEXTDELEGATE_H
#define ITEMRICHTEXTDELEGATE_H
#include <QItemDelegate>
#include <QWidget>
class ItemRichTextDelegate : public QItemDelegate
{
Q_OBJECT
public:
ItemRichTextDelegate(QObject *parent = Q_NULLPTR);
QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option,
const QModelIndex &index) const;
void setEditorData(QWidget *editor, const QModelIndex &index) const;
void setModelData (QWidget *editor, QAbstractItemModel *model,
const QModelIndex &index) const;
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &opcion,
const QModelIndex &index) const;
};
#endif // ITEMRICHTEXTDELEGATE_H