Commit 699252e9 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: We might want to share more that just a description

parent 613ec731
......@@ -61,7 +61,7 @@ private:
QMultiMap<QString, EPGEvent*> m_events;
signals:
void descriptionChanged( const QString& );
void itemSelectionChanged( EPGEvent * );
};
#endif // EPGWIDGET_H
......@@ -61,10 +61,16 @@ EpgDialog::EpgDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf )
splitter->addWidget( descBox );
layout->addWidget( splitter );
CONNECT( epg, descriptionChanged( const QString & ), description, setText( const QString & ) );
CONNECT( epg, descriptionChanged( EPGEvent *), this, showEvent( EPGEvent *) );
}
EpgDialog::~EpgDialog()
{
}
void EpgDialog::showEvent( EPGEvent *event )
{
if( !event ) return;
description->setText( event->description );
}
......@@ -28,6 +28,7 @@
#include "util/singleton.hpp"
class QLabel;
class EPGEvent;
class EpgDialog : public QVLCFrame, public Singleton<EpgDialog>
{
Q_OBJECT;
......@@ -38,6 +39,9 @@ private:
QLabel *description;
friend class Singleton<EpgDialog>;
private slots:
void showEvent( EPGEvent * );
};
#endif
......
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