From: Georg Grabler Date: Sat, 5 Feb 2011 17:04:26 +0000 (+0000) Subject: Revert "* I think i fixed the dualscreen behaviour now by differing between out-of... X-Git-Tag: 1.4.1~2^2~4^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=52994f97e0e4d1611e824cb6ab8a6bd7951d1c24;p=minitube 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 --- 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;