[vlc-devel] commit: QT: use qfu when creating EPG-stuff (Ilkka Ollakka )

git version control git at videolan.org
Wed Feb 3 16:09:30 CET 2010


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Wed Feb  3 08:38:36 2010 +0200| [b86f8d766d2dcebc263935626652f56cf3b4847d] | committer: Ilkka Ollakka 

QT: use qfu when creating EPG-stuff

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

 modules/gui/qt4/components/epg/EPGWidget.cpp |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/modules/gui/qt4/components/epg/EPGWidget.cpp b/modules/gui/qt4/components/epg/EPGWidget.cpp
index 55bf2f8..fba192d 100644
--- a/modules/gui/qt4/components/epg/EPGWidget.cpp
+++ b/modules/gui/qt4/components/epg/EPGWidget.cpp
@@ -27,6 +27,7 @@
 #include <QScrollBar>
 #include <QDebug>
 #include <QLabel>
+#include "qt4.hpp"
 
 ChannelsWidget::ChannelsWidget( QWidget *parent ) : QWidget( parent )
 {
@@ -77,13 +78,13 @@ void EPGWidget::updateEPG( vlc_epg_t **pp_epg, int i_epg )
     for ( int i = 0; i < i_epg; ++i )
     {
         vlc_epg_t *p_epg = pp_epg[i];
-        QString channelName = QString( p_epg->psz_name );
+        QString channelName = qfu( p_epg->psz_name );
 
         for ( int j = 0; j < p_epg->i_event; ++j )
         {
             EPGEvent *item = NULL;
             vlc_epg_event_t *p_event = p_epg->pp_event[j];
-            QString eventName = QString( p_event->psz_name );
+            QString eventName = qfu( p_event->psz_name );
 
             QList<EPGEvent*> events = m_events.values( channelName );
 
@@ -94,8 +95,8 @@ void EPGWidget::updateEPG( vlc_epg_t **pp_epg, int i_epg )
                 {
                     item = events.at( k );
                     item->updated = true;
-                    item->description = QString( p_event->psz_description );
-                    item->shortDescription = QString( p_event->psz_short_description );
+                    item->description = qfu( p_event->psz_description );
+                    item->shortDescription = qfu( p_event->psz_short_description );
                     item->start = QDateTime::fromTime_t( p_event->i_start );
                     item->duration = p_event->i_duration;
                     item->current = ( p_epg->p_current == p_event ) ? true : false;
@@ -111,8 +112,8 @@ void EPGWidget::updateEPG( vlc_epg_t **pp_epg, int i_epg )
             if ( !item )
             {
                 item = new EPGEvent( eventName );
-                item->description = QString( p_event->psz_description );
-                item->shortDescription = QString( p_event->psz_short_description );
+                item->description = qfu( p_event->psz_description );
+                item->shortDescription = qfu( p_event->psz_short_description );
                 item->start = QDateTime::fromTime_t( p_event->i_start );
                 item->duration = p_event->i_duration;
                 item->channelName = channelName;




More information about the vlc-devel mailing list