21 lines
542 B
C++
21 lines
542 B
C++
#ifndef GUI_ACCOUNTROLECOMBODELEGATE_H
|
|
|
|
#define GUI_ACCOUNTROLECOMBODELEGATE_H
|
|
|
|
#include <QAbstractItemModel>
|
|
#include <QItemDelegate>
|
|
class AccountRoleComboDelegate:public QItemDelegate {
|
|
Q_OBJECT
|
|
public:
|
|
explicit AccountRoleComboDelegate(QWidget *parent = nullptr);
|
|
|
|
protected:
|
|
void drawDisplay(QPainter *painter, const QStyleOptionViewItem &option,
|
|
const QRect &rect, const QString &text) const override ;
|
|
|
|
private:
|
|
QMap<QString,QVariant> mRoleMap ;
|
|
};
|
|
|
|
#endif //GUI_ACCOUNTROLECOMBODELEGATE_H
|