Commit 979bcb5e authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: EPG: use connect() macros

parent 3dc03791
...@@ -52,14 +52,14 @@ EPGWidget::EPGWidget( QWidget *parent ) : QWidget( parent ) ...@@ -52,14 +52,14 @@ EPGWidget::EPGWidget( QWidget *parent ) : QWidget( parent )
layout->setSpacing( 0 ); layout->setSpacing( 0 );
setLayout( layout ); setLayout( layout );
connect( m_epgView, SIGNAL( startTimeChanged(QDateTime) ), CONNECT( m_epgView, startTimeChanged(QDateTime),
m_rulerWidget, SLOT( setStartTime(QDateTime) ) ); m_rulerWidget, setStartTime(QDateTime) );
connect( m_epgView, SIGNAL( durationChanged(int) ), CONNECT( m_epgView, durationChanged(int),
m_rulerWidget, SLOT( setDuration(int) ) ); m_rulerWidget, setDuration(int) );
connect( m_epgView->horizontalScrollBar(), SIGNAL( valueChanged(int) ), CONNECT( m_epgView->horizontalScrollBar(), valueChanged(int),
m_rulerWidget, SLOT( setOffset(int) ) ); m_rulerWidget, setOffset(int) );
connect( m_epgView->verticalScrollBar(), SIGNAL( valueChanged(int) ), CONNECT( m_epgView->verticalScrollBar(), valueChanged(int),
m_channelsWidget, SLOT( setOffset(int) ) ); m_channelsWidget, setOffset(int) );
connect( m_epgView, SIGNAL( itemFocused(EPGItem*)), connect( m_epgView, SIGNAL( itemFocused(EPGItem*)),
this, SIGNAL(itemSelectionChanged(EPGItem*)) ); this, SIGNAL(itemSelectionChanged(EPGItem*)) );
CONNECT( m_epgView, channelAdded(QString), m_channelsWidget, addChannel(QString) ); CONNECT( m_epgView, channelAdded(QString), m_channelsWidget, addChannel(QString) );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment