40 #include <QStyledItemDelegate>
41 class QStandardItemModel;
60 void setNavs(
const QList<QString>& navs);
61 void setEnabled(
const int& index,
bool enabled);
67 QStandardItemModel* model_;
83 QSize
sizeHint(
const QStyleOptionViewItem& option,
const QModelIndex& index)
const override;
84 void paint(QPainter* painter,
const QStyleOptionViewItem& option,
const QModelIndex& index)
const override;
NavDelegate(QObject *parent=nullptr)
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override