22 #ifndef PLAYLISTITEMDELEGATEINTERFACE_H_ 23 #define PLAYLISTITEMDELEGATEINTERFACE_H_ 28 #include <QStyledItemDelegate> 30 #include "Helper/Settings/SayonaraClass.h" 34 public QStyledItemDelegate,
44 void paint( QPainter *painter,
const QStyleOptionViewItem &option,
45 const QModelIndex &index)
const override;
48 QSize sizeHint(
const QStyleOptionViewItem &option,
49 const QModelIndex &index)
const override;
51 QWidget* createEditor(QWidget *parent,
52 const QStyleOptionViewItem &option,
53 const QModelIndex &index)
const override;
55 void set_max_width(
int w);
56 int get_row_height()
const;
58 void set_drag_index(
int row);
59 bool is_drag_index(
int row)
const;
60 int get_drag_index()
const;
66 QListView* _parent=
nullptr;
72 QString _entry_template;
77 int draw_number(QPainter* painter,
int number, QFont& font, QRect& rect)
const;
79 void _sl_show_numbers_changed();
80 void _sl_look_changed();
The SayonaraClass class provides access to Settings and notifications.
Definition: SayonaraClass.h:31
Definition: PlaylistItemDelegate.h:33