summaryrefslogtreecommitdiff
path: root/client/videowidget.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/videowidget.cc')
-rw-r--r--client/videowidget.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/videowidget.cc b/client/videowidget.cc
index 61b5c8e..a2d5a14 100644
--- a/client/videowidget.cc
+++ b/client/videowidget.cc
@@ -32,7 +32,7 @@
#include "miav_config.h"
-VideoWidget::VideoWidget(QWidget *p, Camera *c, QWidget* old) : QWidget(p, "")
+VideoWidget::VideoWidget(QWidget *p, Camera *c, QWidget* old) : QWidget(p)
{
camera = c;
parent = p;
@@ -41,7 +41,7 @@ VideoWidget::VideoWidget(QWidget *p, Camera *c, QWidget* old) : QWidget(p, "")
// A welltested hack to force SDL to draw in the QWidget
QString ids;
- setenv("SDL_WINDOWID", ids.setNum(winId()), 1);
+ setenv("SDL_WINDOWID", ids.setNum(winId()).toStdString().c_str(), 1);
}
VideoWidget::~VideoWidget()
@@ -59,7 +59,7 @@ void VideoWidget::mouseReleaseEvent(QMouseEvent *event)
{
if(!parent) { // We are a fullscreen window
QString ids;
- setenv("SDL_WINDOWID", ids.setNum(oldWindow->winId()), 1);
+ setenv("SDL_WINDOWID", ids.setNum(oldWindow->winId()).toStdString().c_str(), 1);
camera->resize(oldWindow->width(), oldWindow->height(), false);
destroy();
} else { // We are a nested window