From 9aa920550f0761bb1b43fccb9df444d10c125349 Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Wed, 2 Sep 2009 10:48:54 +0200 Subject: [PATCH] Disabled mouse autohide on Mac --- src/videowidget.cpp | 6 ++---- src/videowidget.h | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/videowidget.cpp b/src/videowidget.cpp index c0137ed..71179cb 100644 --- a/src/videowidget.cpp +++ b/src/videowidget.cpp @@ -1,18 +1,16 @@ #include "videowidget.h" VideoWidget::VideoWidget(QWidget *parent) : Phonon::VideoWidget(parent) { -//#ifndef Q_WS_MAC // mouse autohide // setMouseTracking(true); mouseTimer = new QTimer(this); mouseTimer->setInterval(3000); mouseTimer->setSingleShot(true); connect(mouseTimer, SIGNAL(timeout()), SLOT(hideMouse())); -// #endif } void VideoWidget::mouseMoveEvent(QMouseEvent * /* event */) { - qDebug() << "mouseMoveEvent"; + // qDebug() << "mouseMoveEvent"; // show the normal cursor unsetCursor(); @@ -22,6 +20,6 @@ void VideoWidget::mouseMoveEvent(QMouseEvent * /* event */) { } void VideoWidget::hideMouse() { - qDebug() << "hideMouse()"; + // qDebug() << "hideMouse()"; setCursor(Qt::BlankCursor); } diff --git a/src/videowidget.h b/src/videowidget.h index 5d0e016..deac833 100644 --- a/src/videowidget.h +++ b/src/videowidget.h @@ -2,7 +2,7 @@ #define VIDEOWIDGET_H #include -#include +#include #include class VideoWidget : public Phonon::VideoWidget { -- 2.39.5