From: Flavio Tordini Date: Wed, 2 Sep 2009 08:48:54 +0000 (+0200) Subject: Disabled mouse autohide on Mac X-Git-Tag: 0.6~20 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9aa920550f0761bb1b43fccb9df444d10c125349;p=minitube Disabled mouse autohide on Mac --- 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 {