21 #ifndef LIBRARY_RATING_DELEGATE_H 22 #define LIBRARY_RATING_DELEGATE_H 24 #include "Gui/Utils/Delegates/StyledItemDelegate.h" 25 #include "Utils/Pimpl.h" 43 void paint(QPainter* painter,
const QStyleOptionViewItem& option,
const QModelIndex& index)
const override;
44 QWidget* createEditor(QWidget *parent,
const QStyleOptionViewItem &option,
const QModelIndex &index)
const override;
45 void setEditorData(QWidget *editor,
const QModelIndex &index)
const override;
46 void setModelData(QWidget *editor, QAbstractItemModel *model,
const QModelIndex &index)
const override;
49 void destroy_editor(
bool save);
53 #endif // LibraryRatingDelegate_H The StyledItemDelegate class assures a certain height of rows in a table and tree view...
Definition: StyledItemDelegate.h:33
A special delegate class for tables containing a rating.
Definition: RatingDelegate.h:33
An interface class needed when implementing a library plugin.
Definition: LocalLibraryWatcher.h:32