From: Flavio Tordini Date: Tue, 11 Aug 2009 08:47:27 +0000 (+0200) Subject: Fixed string not getting translated by removing the Playlist namespace X-Git-Tag: 0.6~66 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=64d033df01dc6765b081c962e1f32515705b1c11;p=minitube Fixed string not getting translated by removing the Playlist namespace --- diff --git a/src/playlist/PrettyItemDelegate.cpp b/src/playlist/PrettyItemDelegate.cpp index fff8ebe..efc9e0c 100644 --- a/src/playlist/PrettyItemDelegate.cpp +++ b/src/playlist/PrettyItemDelegate.cpp @@ -4,8 +4,6 @@ #include #include -using namespace Playlist; - const qreal PrettyItemDelegate::THUMB_HEIGHT = 90.0; const qreal PrettyItemDelegate::THUMB_WIDTH = 120.0; const qreal PrettyItemDelegate::MARGIN = 0.0; diff --git a/src/playlist/PrettyItemDelegate.h b/src/playlist/PrettyItemDelegate.h index a015364..941f397 100644 --- a/src/playlist/PrettyItemDelegate.h +++ b/src/playlist/PrettyItemDelegate.h @@ -7,42 +7,42 @@ class QPainter; -namespace Playlist { - class PrettyItemDelegate : public QStyledItemDelegate { - Q_OBJECT +class PrettyItemDelegate : public QStyledItemDelegate { - public: - PrettyItemDelegate( QObject* parent = 0 ); - ~PrettyItemDelegate(); + Q_OBJECT - QSize sizeHint( const QStyleOptionViewItem&, const QModelIndex& ) const; - void paint( QPainter*, const QStyleOptionViewItem&, const QModelIndex& ) const; +public: + PrettyItemDelegate( QObject* parent = 0 ); + ~PrettyItemDelegate(); - private: - void paintBody( QPainter*, const QStyleOptionViewItem&, const QModelIndex& ) const; + QSize sizeHint( const QStyleOptionViewItem&, const QModelIndex& ) const; + void paint( QPainter*, const QStyleOptionViewItem&, const QModelIndex& ) const; - QPointF centerImage( const QPixmap&, const QRectF& ) const; +private: + void paintBody( QPainter*, const QStyleOptionViewItem&, const QModelIndex& ) const; - /** + QPointF centerImage( const QPixmap&, const QRectF& ) const; + + /** * Paints a marker indicating the track is active */ - void paintActiveOverlay( QPainter *painter, qreal x, qreal y, qreal w, qreal h ) const; - /** + void paintActiveOverlay( QPainter *painter, qreal x, qreal y, qreal w, qreal h ) const; + /** * Paints the video duration */ - void drawTime(QPainter *painter, QString time, QRectF line) const; + void drawTime(QPainter *painter, QString time, QRectF line) const; + + static const qreal THUMB_WIDTH; + static const qreal THUMB_HEIGHT; + static const qreal MARGIN; + static const qreal MARGINH; + static const qreal MARGINBODY; + static const qreal PADDING; - static const qreal THUMB_WIDTH; - static const qreal THUMB_HEIGHT; - static const qreal MARGIN; - static const qreal MARGINH; - static const qreal MARGINBODY; - static const qreal PADDING; +}; - }; -} #endif