From 8c381fe44a179b4b84ecc50e810980f7af9a0f58 Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 25 Jul 2005 15:35:41 +0000 Subject: *** empty log message *** --- src/mainwindow.cc | 4 ++++ src/videowidget.cc | 17 +++++++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/src/mainwindow.cc b/src/mainwindow.cc index c540767..b73e133 100644 --- a/src/mainwindow.cc +++ b/src/mainwindow.cc @@ -31,6 +31,9 @@ /* * $Log$ + * Revision 1.41 2005/07/25 15:35:41 deva + * *** empty log message *** + * * Revision 1.40 2005/07/25 14:27:14 deva * *** empty log message *** * @@ -191,6 +194,7 @@ MainWindow::MainWindow(QApplication *qApp, QWidget* parent, const char* name ) // Open the CPR Dialog cpr_clicked(); + } MainWindow::~MainWindow() diff --git a/src/videowidget.cc b/src/videowidget.cc index 859763d..2aa7ba9 100644 --- a/src/videowidget.cc +++ b/src/videowidget.cc @@ -31,6 +31,9 @@ /* * $Log$ + * Revision 1.5 2005/07/25 15:40:07 deva + * *** empty log message *** + * * Revision 1.4 2005/07/25 15:35:41 deva * *** empty log message *** * @@ -67,11 +70,17 @@ QPixmap VideoWidget::getScreenshot() void VideoWidget::mousePressEvent(QMouseEvent *event) { + QString ids; + if(isFullScreen()) { printf("Going normal\n"); - reparent(parent, 0, QPoint(0,0), FALSE); + setenv("SDL_WINDOWID", ids.setNum(0), 1); + + reparent(parent, 0, QPoint(10,10), FALSE); + + setenv("SDL_WINDOWID", ids.setNum(winId()), 1); showNormal(); @@ -79,7 +88,11 @@ void VideoWidget::mousePressEvent(QMouseEvent *event) printf("Going fullscreen\n"); - reparent(NULL, 0, QPoint(10,10), FALSE); + setenv("SDL_WINDOWID", ids.setNum(0), 1); + + reparent(NULL, 0, QPoint(0,0), FALSE); + + setenv("SDL_WINDOWID", ids.setNum(winId()), 1); showFullScreen(); -- cgit v1.2.3