From: Flavio Tordini Date: Fri, 8 Jan 2010 21:57:16 +0000 (+0100) Subject: Fixed fullscreen mode X-Git-Tag: 0.9~13 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=db7068c0121ead4cffffa3a770172a940f137725;p=minitube Fixed fullscreen mode --- 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";