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
return m_start;
}
QDateTime EPGItem::end()
QDateTime EPGItem::end() const
{
return QDateTime( m_start ).addSecs( m_duration );
}
......@@ -204,7 +204,7 @@ void EPGItem::setRating( uint8_t i_rating )
m_rating = i_rating;
}
QString EPGItem::description()
QString EPGItem::description() const
{
if( m_description.isEmpty() )
return m_shortDescription;
......
......@@ -44,12 +44,12 @@ public:
virtual void paint( QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0 );
const QDateTime& start() const;
QDateTime end();
QDateTime end() const;
int duration() const;
const QString& name() { return m_name; };
QString description();
int rating() { return m_rating; }
const QString& name() const { return m_name; }
QString description() const;
int rating() const { return m_rating; }
bool setData( vlc_epg_event_t * );
void setRow( unsigned int );
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