Added fullscreen button
[someplayer] / src / trackrenderer.h
1 #ifndef TRACKRENDERER_H
2 #define TRACKRENDERER_H
3
4 #include <QAbstractItemDelegate>
5 #include <QPainter>
6
7 class TrackRenderer : public QAbstractItemDelegate
8 {
9     Q_OBJECT
10 public:
11     explicit TrackRenderer(QObject *parent = 0);
12         void paint(QPainter *painter, const QStyleOptionViewItem &option,
13                                                                 const QModelIndex &index) const;
14
15         QSize sizeHint(const QStyleOptionViewItem &option,
16                                                    const QModelIndex &index) const;
17
18 signals:
19
20 public slots:
21         void setActiveRow(int);
22 private:
23         int _active_row;
24
25 };
26
27 #endif // TRACKRENDERER_H