16
16
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
17
17
**************************************************************************/
19
24
#include "../lib/videorenderer.h"
23
27
VideoWidget::VideoWidget(QWidget* parent ,VideoRenderer* renderer) : QWidget(parent),m_Image(nullptr),m_pRenderer(renderer) {
25
29
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
26
30
connect(m_pRenderer,SIGNAL(frameUpdated()),this,SLOT(updateFrame()));
27
connect(VideoModel::getInstance(),SIGNAL(videoStopped()),this,SLOT(stop()));
28
connect(VideoModel::getInstance(),SIGNAL(videoCallInitiated(VideoRenderer*)),this,SLOT(setRenderer(VideoRenderer*)));
31
connect(VideoModel::instance(),SIGNAL(videoStopped()),this,SLOT(stop()));
32
connect(VideoModel::instance(),SIGNAL(videoCallInitiated(VideoRenderer*)),this,SLOT(setRenderer(VideoRenderer*)));