From 3418eb3673a2931c5dc27f5d506d308718b8be1d Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Tue, 18 Aug 2009 13:41:46 +0200 Subject: [PATCH] Fixed mouse autohide --- src/videoareawidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.39.5