[vlc-commits] commit: Qt/EPG: fix start and end program displaying. (Adrien Maglo )

git at videolan.org git at videolan.org
Thu Jun 17 21:50:51 CEST 2010


vlc | branch: master | Adrien Maglo <magsoft at videolan.org> | Thu Jun 17 21:50:05 2010 +0200| [ce90f5dfd2291827fe31eb902664f84261be5c8a] | committer: Adrien Maglo 

Qt/EPG: fix start and end program displaying.
My fault: addSecs() call was modifying the item start time ...

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ce90f5dfd2291827fe31eb902664f84261be5c8a
---

 modules/gui/qt4/components/epg/EPGItem.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/components/epg/EPGItem.cpp b/modules/gui/qt4/components/epg/EPGItem.cpp
index 39dbea5..4e24e58 100644
--- a/modules/gui/qt4/components/epg/EPGItem.cpp
+++ b/modules/gui/qt4/components/epg/EPGItem.cpp
@@ -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 );



More information about the vlc-commits mailing list