21 #ifndef PLAYLISTITEMDELEGATE_H_ 22 #define PLAYLISTITEMDELEGATE_H_ 24 #include "Gui/Utils/Delegates/StyledItemDelegate.h" 25 #include "Utils/Pimpl.h" 43 void paint( QPainter *painter,
const QStyleOptionViewItem &option,
44 const QModelIndex &index)
const override;
46 QWidget* createEditor(QWidget* parent,
const QStyleOptionViewItem& option,
const QModelIndex& index)
const override;
47 void setEditorData(QWidget* editor,
const QModelIndex& index)
const override;
48 void setModelData(QWidget* editor, QAbstractItemModel* model,
const QModelIndex& index)
const override;
50 int rating_height()
const;
53 void sl_look_changed();
54 void sl_show_rating_changed();
55 void destroy_editor(
bool save=
false);
The StyledItemDelegate class assures a certain height of rows in a table and tree view.
Definition: StyledItemDelegate.h:33
The PlaylistItemDelegate class.
Definition: Delegate.h:33