summaryrefslogtreecommitdiff
path: root/client/videowidget.cc
diff options
context:
space:
mode:
authordeva <deva>2006-04-08 15:20:51 +0000
committerdeva <deva>2006-04-08 15:20:51 +0000
commit46b3c21f079a10e1ed072976d355a8026bcb7580 (patch)
tree7fb0311f5f76ec991ebc0a05ba3ab62cd5c8946d /client/videowidget.cc
parent9c078bc5e1468ed79d85fafbad41160c0170959e (diff)
*** empty log message ***
Diffstat (limited to 'client/videowidget.cc')
-rw-r--r--client/videowidget.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/client/videowidget.cc b/client/videowidget.cc
index edabf71..f6fc430 100644
--- a/client/videowidget.cc
+++ b/client/videowidget.cc
@@ -51,9 +51,24 @@ VideoWidget::~VideoWidget()
{
}
+//static QWidget *realparent;
void VideoWidget::mouseReleaseEvent(QMouseEvent *event)
{
/*
+ fprintf(stderr, "Fullscreen\n");
+
+ if(isFullScreen()) {
+ // setWindowState(Qt::WindowNoState);
+ setParent(realparent);
+ showNormal();
+ } else {
+ realparent = parentWidget();
+ setParent(NULL);
+ showFullScreen();
+ // setWindowState(Qt::WindowFullScreen);
+ }
+ */
+ /*
if(!parent) { // We are a fullscreen window
QString ids;
setenv("SDL_WINDOWID", ids.setNum(oldWindow->winId()).toStdString().c_str(), 1);