]> git.sesse.net Git - vlc/commitdiff
QT: use qfu when creating EPG-stuff
authorIlkka Ollakka <ileoo@videolan.org>
Wed, 3 Feb 2010 06:38:36 +0000 (08:38 +0200)
committerIlkka Ollakka <ileoo@videolan.org>
Wed, 3 Feb 2010 15:09:20 +0000 (17:09 +0200)
modules/gui/qt4/components/epg/EPGWidget.cpp

index 55bf2f82e349dd567f57c2f4ff3314f48fc455fc..fba192d9df3a3cbc8604a88728fa1f1720597224 100644 (file)
@@ -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;