diff sv/main/MainWindow.cpp @ 145:e63e8272dcb0

the video size is updated automatically
author benoitrigolleau
date Tue, 13 Nov 2007 17:23:53 +0000
parents f3dce7a985cf
children 69061754408f
line wrap: on
line diff
--- a/sv/main/MainWindow.cpp	Tue Nov 13 11:09:57 2007 +0000
+++ b/sv/main/MainWindow.cpp	Tue Nov 13 17:23:53 2007 +0000
@@ -109,8 +109,6 @@
 #include <cstdio>
 #include <errno.h>
 
-#include "data/model/SDLWidget.h"
-
 using std::cerr;
 using std::endl;
 
@@ -319,11 +317,11 @@
 	/****************************/
 
 	/************video***********/
-	SDLWidget* tt = new SDLWidget();
+	m_sdlWidget = new SDLWidget();
 	QHBoxLayout *videoHLayout= new QHBoxLayout;
 	
 	videoHLayout->addStretch();
-	videoHLayout->addWidget(tt);
+	videoHLayout->addWidget(m_sdlWidget);
 	videoHLayout->addStretch();
 	QVBoxLayout *videoVLayout= new QVBoxLayout;
 	videoVLayout->addStretch();
@@ -5497,3 +5495,10 @@
 		m_document->removeFilter(name);
 }
 
+SDLWidget* MainWindow::getSDLWidget(){
+	return m_sdlWidget;
+}
+
+void MainWindow::setSDLInitSize(int w, int h){
+	m_sdlWidget->setInitSize(w,h);
+}
\ No newline at end of file