21 #ifndef PLAYLISTITEMDELEGATE_H_ 22 #define PLAYLISTITEMDELEGATE_H_ 24 #include <QItemDelegate> 26 #include "Helper/Settings/SayonaraClass.h" 39 void paint( QPainter *painter,
const QStyleOptionViewItem &option,
40 const QModelIndex &index)
const override;
43 QSize sizeHint(
const QStyleOptionViewItem &option,
44 const QModelIndex &index)
const override;
46 QWidget* createEditor(QWidget *parent,
47 const QStyleOptionViewItem &option,
48 const QModelIndex &index)
const override;
50 void set_max_width(
int w);
51 int get_row_height()
const;
53 void set_drag_index(
int row);
54 bool is_drag_index(
int row)
const;
55 int get_drag_index()
const;
64 QString _entry_template;
68 int draw_number(QPainter* painter,
int number, QFont& font, QRect& rect)
const;
70 void _sl_show_numbers_changed();
71 void _sl_look_changed();
The SayonaraClass class provides access to Settings and notifications.
Definition: SayonaraClass.h:29
Definition: PlaylistItemDelegate.h:29