// // Created by Krad on 2021/12/8. // #ifndef GUI_ACCOUNTROLECOMBODELEGATE_H #define GUI_ACCOUNTROLECOMBODELEGATE_H #include #include class AccountRoleComboDelegate:public QItemDelegate { Q_OBJECT public: explicit AccountRoleComboDelegate(QWidget *parent = nullptr); void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override; private: QAbstractItemModel* model = nullptr; QMap map ; }; #endif //GUI_ACCOUNTROLECOMBODELEGATE_H