From db7068c0121ead4cffffa3a770172a940f137725 Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Fri, 8 Jan 2010 22:57:16 +0100 Subject: [PATCH] Fixed fullscreen mode --- src/videoareawidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/videoareawidget.cpp b/src/videoareawidget.cpp index a733fc1..b1781ac 100644 --- a/src/videoareawidget.cpp +++ b/src/videoareawidget.cpp @@ -97,7 +97,7 @@ void VideoAreaWidget::dropEvent(QDropEvent *event) { void VideoAreaWidget::mouseMoveEvent(QMouseEvent *event) { // qDebug() << "VideoAreaWidget::mouseMoveEvent" << event->pos(); - QMainWindow* mainWindow = dynamic_cast(qApp->topLevelWidgets().first()); + QWidget* mainWindow = window(); bool visible = event->pos().y() <= 0; bool ret = QMetaObject::invokeMethod(mainWindow, "showFullscreenToolbar", Qt::DirectConnection, Q_ARG(bool, visible)); if (!ret) qDebug() << "showFullscreenToolbar invokeMethod failed"; -- 2.39.5