Commit e600df62 authored by Adrien Maglo's avatar Adrien Maglo

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

parent fca4d1ec
...@@ -153,5 +153,7 @@ void EPGItem::focusInEvent( QFocusEvent * event ) ...@@ -153,5 +153,7 @@ void EPGItem::focusInEvent( QFocusEvent * event )
EPGEvent *evEPG = new EPGEvent( m_name ); EPGEvent *evEPG = new EPGEvent( m_name );
evEPG->description = m_description; evEPG->description = m_description;
evEPG->shortDescription = m_shortDescription; evEPG->shortDescription = m_shortDescription;
evEPG->start = m_start;
evEPG->duration = m_duration;
m_view->eventFocused( evEPG ); m_view->eventFocused( evEPG );
} }
...@@ -93,7 +93,11 @@ void EpgDialog::showEvent( EPGEvent *event ) ...@@ -93,7 +93,11 @@ void EpgDialog::showEvent( EPGEvent *event )
{ {
if( !event ) return; 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() ) if( !event->description.isEmpty() )
description->setText( event->description ); description->setText( event->description );
else 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