[vlc-commits] Qt: EPG: use connect() macros

Francois Cartegnie git at videolan.org
Wed Mar 23 22:10:58 CET 2011


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Mar 23 20:45:20 2011 +0100| [979bcb5e445345b08f88e0939af4dfe48a374af9] | committer: Francois Cartegnie

Qt: EPG: use connect() macros

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

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

diff --git a/modules/gui/qt4/components/epg/EPGWidget.cpp b/modules/gui/qt4/components/epg/EPGWidget.cpp
index 93c574e..5a997cc 100644
--- a/modules/gui/qt4/components/epg/EPGWidget.cpp
+++ b/modules/gui/qt4/components/epg/EPGWidget.cpp
@@ -52,14 +52,14 @@ EPGWidget::EPGWidget( QWidget *parent ) : QWidget( parent )
     layout->setSpacing( 0 );
     setLayout( layout );
 
-    connect( m_epgView, SIGNAL( startTimeChanged(QDateTime) ),
-             m_rulerWidget, SLOT( setStartTime(QDateTime) ) );
-    connect( m_epgView, SIGNAL( durationChanged(int) ),
-             m_rulerWidget, SLOT( setDuration(int) ) );
-    connect( m_epgView->horizontalScrollBar(), SIGNAL( valueChanged(int) ),
-             m_rulerWidget, SLOT( setOffset(int) ) );
-    connect( m_epgView->verticalScrollBar(), SIGNAL( valueChanged(int) ),
-             m_channelsWidget, SLOT( setOffset(int) ) );
+    CONNECT( m_epgView, startTimeChanged(QDateTime),
+             m_rulerWidget, setStartTime(QDateTime) );
+    CONNECT( m_epgView, durationChanged(int),
+             m_rulerWidget, setDuration(int) );
+    CONNECT( m_epgView->horizontalScrollBar(), valueChanged(int),
+             m_rulerWidget, setOffset(int) );
+    CONNECT( m_epgView->verticalScrollBar(), valueChanged(int),
+             m_channelsWidget, setOffset(int) );
     connect( m_epgView, SIGNAL( itemFocused(EPGItem*)),
              this, SIGNAL(itemSelectionChanged(EPGItem*)) );
     CONNECT( m_epgView, channelAdded(QString), m_channelsWidget, addChannel(QString) );



More information about the vlc-commits mailing list