#define TRACKRENDERER_H
#include <QAbstractItemDelegate>
+#include "abstractitemrenderer.h"
#include <QPainter>
+#include <QPen>
+#include "someplayer.h"
-class TrackRenderer : public QAbstractItemDelegate
+class TrackRenderer : public AbstractItemRenderer
{
- Q_OBJECT
+ Q_OBJECT
public:
- explicit TrackRenderer(QObject *parent = 0);
+ explicit TrackRenderer(QObject *parent = 0);
void paint(QPainter *painter, const QStyleOptionViewItem &option,
const QModelIndex &index) const;
QSize sizeHint(const QStyleOptionViewItem &option,
const QModelIndex &index) const;
+ void updateIcons();
+ void setActiveTrackColor(QString);
-signals:
-
-public slots:
- void setActiveRow(int);
- void setSearchRow(int);
- int activeRow() {return _active_row;}
- int searchRow() {return _search_row;}
private:
- int _active_row;
- int _search_row;
-
+ QString _icons_theme;
+ QPen _apen;
+ QPen _spen;
+ QPen _sspen;
};
#endif // TRACKRENDERER_H