Commit 5ff7bcdf authored by Adrien Maglo's avatar Adrien Maglo Committed by Jean-Baptiste Kempf

Qt/EPG: Display the program start and end times just before the title in the description box.

(cherry picked from commit e600df62)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 6a6a915e
......@@ -152,5 +152,7 @@ void EPGItem::focusInEvent( QFocusEvent * event )
EPGEvent *evEPG = new EPGEvent( m_name );
evEPG->description = m_description;
evEPG->shortDescription = m_shortDescription;
evEPG->start = m_start;
evEPG->duration = m_duration;
m_view->eventFocused( evEPG );
}
......@@ -93,7 +93,11 @@ void EpgDialog::showEvent( EPGEvent *event )
{
if( !event ) return;
title->setText( event->name );
QDateTime end = event->start.addSecs( event->duration );
title->setText( event->start.toString( "hh:mm" ) + " - "
+ end.toString( "hh:mm" ) + " : "
+ event->name );
if( !event->description.isEmpty() )
description->setText( event->description );
else
......
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