]> git.sur5r.net Git - minitube/commitdiff
Revert "* I think i fixed the dualscreen behaviour now by differing between out-of...
authorGeorg Grabler <georg@grabler.net>
Sat, 5 Feb 2011 17:04:26 +0000 (17:04 +0000)
committerGeorg Grabler <georg@grabler.net>
Sat, 5 Feb 2011 17:04:26 +0000 (17:04 +0000)
This reverts commit 9fa89c655abe22639ecc8a34ba3f1d18fc77d644.

Conflicts:

src/MainWindow.cpp

src/videoareawidget.cpp
src/videoareawidget.h

index 2b1c6d1f2dde423020875e4d404e82a2067bb5c7..f4b48e6ecae75303d638cf5dafd44646abfe2a98 100644 (file)
@@ -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";
 }
index fa37a599207b8c0580a2a3d193c6d20258c2fc76..e1f7cea3d16c5cadea95b2c7d5b29f43575c1f21 100644 (file)
@@ -31,6 +31,7 @@ protected:
     void mousePressEvent(QMouseEvent *event);
     void dragEnterEvent(QDragEnterEvent *event);
     void dropEvent(QDropEvent *event);
+    void mouseMoveEvent(QMouseEvent *event);
 
 private:
     QStackedLayout *stackedLayout;