diff options
author | deva <deva> | 2006-03-06 10:44:07 +0000 |
---|---|---|
committer | deva <deva> | 2006-03-06 10:44:07 +0000 |
commit | c9bfc4db72b84292f541c795993abde98e22121f (patch) | |
tree | 687411dce72a70dc0f4c337c8e496607308f8ab4 /client/videowidget.cc | |
parent | c629a137b5f91097004f1a267d1433393e5cc512 (diff) |
*** empty log message ***
Diffstat (limited to 'client/videowidget.cc')
-rw-r--r-- | client/videowidget.cc | 6 |
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 |