From: Flavio Tordini Date: Tue, 18 Aug 2009 11:41:46 +0000 (+0200) Subject: Fixed mouse autohide X-Git-Tag: 0.6~48 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3418eb3673a2931c5dc27f5d506d308718b8be1d;p=minitube Fixed mouse autohide --- diff --git a/src/videoareawidget.cpp b/src/videoareawidget.cpp index 1e87343..9a67ed0 100644 --- a/src/videoareawidget.cpp +++ b/src/videoareawidget.cpp @@ -26,7 +26,7 @@ VideoAreaWidget::VideoAreaWidget(QWidget *parent) : QWidget(parent) { // mouse autohide setMouseTracking(true); mouseTimer = new QTimer(this); - mouseTimer->setInterval(5000); + mouseTimer->setInterval(3000); mouseTimer->setSingleShot(true); connect(mouseTimer, SIGNAL(timeout()), SLOT(hideMouse())); } @@ -77,7 +77,7 @@ void VideoAreaWidget::mouseMoveEvent(QMouseEvent * /* event */) { } void VideoAreaWidget::hideMouse() { - setCursor(QCursor(QBitmap(1,1))); + setCursor(QCursor(Qt::BlankCursor)); } void VideoAreaWidget::dragEnterEvent(QDragEnterEvent *event) {