Commit ce90f5df authored by Adrien Maglo's avatar Adrien Maglo

Qt/EPG: fix start and end program displaying.

My fault: addSecs() call was modifying the item start time ...
parent e1ff44d2
......@@ -85,7 +85,9 @@ void EPGItem::paint( QPainter *painter, const QStyleOptionGraphicsItem*, QWidget
painter->drawText( mapped, Qt::AlignTop | Qt::AlignLeft, fm.elidedText( m_name, Qt::ElideRight, mapped.width() ) );
mapped.adjust( 0, 20, 0, 0 );
QDateTime m_end = m_start.addSecs( m_duration );
QDateTime m_end = m_start;
m_end.addSecs( m_duration );
f.setPixelSize( 10 );
f.setItalic( true );
painter->setFont( f );
......
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