From 52994f97e0e4d1611e824cb6ab8a6bd7951d1c24 Mon Sep 17 00:00:00 2001 From: Georg Grabler Date: Sat, 5 Feb 2011 17:04:26 +0000 Subject: [PATCH] Revert "* I think i fixed the dualscreen behaviour now by differing between out-of-screen and in-screen behaviour" This reverts commit 9fa89c655abe22639ecc8a34ba3f1d18fc77d644. Conflicts: src/MainWindow.cpp --- src/videoareawidget.cpp | 4 ++-- src/videoareawidget.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/videoareawidget.cpp b/src/videoareawidget.cpp index 2b1c6d1..f4b48e6 100644 --- a/src/videoareawidget.cpp +++ b/src/videoareawidget.cpp @@ -107,11 +107,11 @@ void VideoAreaWidget::mouseMoveEvent(QMouseEvent *event) { const int x = event->pos().x(); const int y = event->pos().y(); - bool visible = y <= 10; + bool visible = y <= 0; bool ret = QMetaObject::invokeMethod(mainWindow, "showFullscreenToolbar", Qt::DirectConnection, Q_ARG(bool, visible)); if (!ret) qDebug() << "showFullscreenToolbar invokeMethod failed"; - visible = x <= 10; + visible = x <= 0; ret = QMetaObject::invokeMethod(mainWindow, "showFullscreenPlaylist", Qt::DirectConnection, Q_ARG(bool, visible)); if (!ret) qDebug() << "showFullscreenPlaylist invokeMethod failed"; } diff --git a/src/videoareawidget.h b/src/videoareawidget.h index fa37a59..e1f7cea 100644 --- a/src/videoareawidget.h +++ b/src/videoareawidget.h @@ -31,6 +31,7 @@ protected: void mousePressEvent(QMouseEvent *event); void dragEnterEvent(QDragEnterEvent *event); void dropEvent(QDropEvent *event); + void mouseMoveEvent(QMouseEvent *event); private: QStackedLayout *stackedLayout; -- 2.39.5