Commit cdb42f5c authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: EPGItem: fix constness

parent e92bf8c4
...@@ -136,7 +136,7 @@ const QDateTime& EPGItem::start() const ...@@ -136,7 +136,7 @@ const QDateTime& EPGItem::start() const
return m_start; return m_start;
} }
QDateTime EPGItem::end() QDateTime EPGItem::end() const
{ {
return QDateTime( m_start ).addSecs( m_duration ); return QDateTime( m_start ).addSecs( m_duration );
} }
...@@ -204,7 +204,7 @@ void EPGItem::setRating( uint8_t i_rating ) ...@@ -204,7 +204,7 @@ void EPGItem::setRating( uint8_t i_rating )
m_rating = i_rating; m_rating = i_rating;
} }
QString EPGItem::description() QString EPGItem::description() const
{ {
if( m_description.isEmpty() ) if( m_description.isEmpty() )
return m_shortDescription; return m_shortDescription;
......
...@@ -44,12 +44,12 @@ public: ...@@ -44,12 +44,12 @@ public:
virtual void paint( QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0 ); virtual void paint( QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0 );
const QDateTime& start() const; const QDateTime& start() const;
QDateTime end(); QDateTime end() const;
int duration() const; int duration() const;
const QString& name() { return m_name; }; const QString& name() const { return m_name; }
QString description(); QString description() const;
int rating() { return m_rating; } int rating() const { return m_rating; }
bool setData( vlc_epg_event_t * ); bool setData( vlc_epg_event_t * );
void setRow( unsigned int ); void setRow( unsigned int );
void setCurrent( bool ); void setCurrent( bool );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment