21 #ifndef LIBRARY_RATING_DELEGATE_H 22 #define LIBRARY_RATING_DELEGATE_H 24 #include <QItemDelegate> 25 #include "GUI/Library/Helper/ColumnIndex.h" 33 void sig_rating_changed(
int);
39 void paint(QPainter* painter,
const QStyleOptionViewItem& option,
const QModelIndex& index)
const override;
40 QWidget* createEditor(QWidget *parent,
const QStyleOptionViewItem &option,
const QModelIndex &index)
const override;
41 void setEditorData(QWidget *editor,
const QModelIndex &index)
const override;
42 void setModelData(QWidget *editor, QAbstractItemModel *model,
const QModelIndex &index)
const override;
45 void destroy_editor(
bool save=
false);
53 #endif // LibraryRatingDelegate_H Definition: LibraryRatingDelegate.h:27