Commit c96538ba authored by François Cartegnie's avatar François Cartegnie 🤞

Qt: EPGItem: constify

parent 8d0e56b8
......@@ -35,7 +35,7 @@
#include "qt.hpp"
EPGItem::EPGItem( vlc_epg_event_t *data, EPGView *view )
EPGItem::EPGItem( const vlc_epg_event_t *data, EPGView *view )
: m_view( view )
{
setData( data );
......@@ -150,7 +150,7 @@ void EPGItem::setRow( unsigned int i_row_ )
updatePos();
}
bool EPGItem::setData( vlc_epg_event_t *data )
bool EPGItem::setData( const vlc_epg_event_t *data )
{
QDateTime newtime = QDateTime::fromTime_t( data->i_start );
QString newname = qfu( data->psz_name );
......
......@@ -37,7 +37,7 @@ class EPGView;
class EPGItem : public QGraphicsItem
{
public:
EPGItem( vlc_epg_event_t *data, EPGView *view );
EPGItem( const vlc_epg_event_t *data, EPGView *view );
QRectF boundingRect() const Q_DECL_OVERRIDE;
void paint( QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0 ) Q_DECL_OVERRIDE;
......@@ -49,7 +49,7 @@ public:
const QString& name() const { return m_name; }
QString description() const;
int rating() const { return m_rating; }
bool setData( vlc_epg_event_t * );
bool setData( const vlc_epg_event_t * );
void setRow( unsigned int );
void setCurrent( bool );
void setDuration( int duration );
......
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