]> git.sesse.net Git - vlc/commitdiff
Qt/EPG: Display the program start and end times just before the title in the descript...
authorAdrien Maglo <magsoft@videolan.org>
Thu, 17 Jun 2010 20:14:15 +0000 (22:14 +0200)
committerAdrien Maglo <magsoft@videolan.org>
Thu, 17 Jun 2010 20:14:15 +0000 (22:14 +0200)
modules/gui/qt4/components/epg/EPGItem.cpp
modules/gui/qt4/dialogs/epg.cpp

index 7087c3df4d57d47589532ade79f114445092952b..f3fbb1863d1a05d48ee6c0a37bba61bf040111c7 100644 (file)
@@ -153,5 +153,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 );
 }
index 7c112d3b0ef46e1f4df052f2124a8b4878e31137..9b31c8f3028fb83e87bc64ec36f01aa4e2190128 100644 (file)
@@ -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