21 #ifndef PLAYLISTITEMDELEGATE_H_ 22 #define PLAYLISTITEMDELEGATE_H_ 24 #include "Utils/Settings/SayonaraClass.h" 25 #include "GUI/Utils/Delegates/StyledItemDelegate.h" 38 void paint( QPainter *painter,
const QStyleOptionViewItem &option,
39 const QModelIndex &index)
const override;
42 QWidget* createEditor(QWidget *parent,
43 const QStyleOptionViewItem &option,
44 const QModelIndex &index)
const override;
46 void set_drag_index(
int row);
47 bool is_drag_index(
int row)
const;
48 int drag_index()
const;
54 QString _entry_template;
58 int draw_number(QPainter* painter,
int number, QFont& font, QRect& rect)
const;
60 void _sl_show_numbers_changed();
61 void _sl_look_changed();
Definition: StyledItemDelegate.h:30
The SayonaraClass class provides access to Settings and notifications.
Definition: SayonaraClass.h:29
Definition: Delegate.h:28