Implemented search
[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         void setSearchRow(int);
23         int activeRow() {return _active_row;}
24         int searchRow() {return _search_row;}
25 private:
26         int _active_row;
27         int _search_row;
28
29 };
30
31 #endif // TRACKRENDERER_H