X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fplaylist%2FPrettyItemDelegate.h;h=8934f578a597361de6465c282a6f391c1e9bc557;hb=3c8c537559e6bef5f019196b0989e95863ddd3ee;hp=708256fcd35a8cd9593a07538407c9f3c6091349;hpb=d1f0fac328bdf71b840ac6ac9f6fed8f324d02bb;p=minitube diff --git a/src/playlist/PrettyItemDelegate.h b/src/playlist/PrettyItemDelegate.h index 708256f..8934f57 100644 --- a/src/playlist/PrettyItemDelegate.h +++ b/src/playlist/PrettyItemDelegate.h @@ -18,6 +18,7 @@ public: QSize sizeHint( const QStyleOptionViewItem&, const QModelIndex& ) const; void paint( QPainter*, const QStyleOptionViewItem&, const QModelIndex& ) const; QRect downloadButtonRect(QRect line) const; + QRect authorRect(const QModelIndex& index) const; private: void createPlayIcon(); @@ -27,7 +28,6 @@ private: const QModelIndex& index ) const; // active track painting - void paintSelectedOverlay( QPainter *painter, qreal x, qreal y, qreal w, qreal h ) const; void paintActiveOverlay( QPainter *painter, qreal x, qreal y, qreal w, qreal h ) const; void paintPlayIcon(QPainter *painter) const; @@ -45,6 +45,7 @@ private: bool downloadInfo; QProgressBar *progressBar; + }; #endif