From 7fd93eff5bb4f038c57716d1622b72a69ee5bc10 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 8 Aug 2017 23:25:09 +0300 Subject: [PATCH] Fix bug with mouse cursor. --HG-- branch : develop --- src/app/valentina/mainwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index ba7a2d66d..a7e5984d2 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -568,8 +568,8 @@ void MainWindow::SetToolButton(bool checked, Tool t, const QString &cursor, cons } } QPixmap pixmap(cursorResource); - QCursor cur(pixmap, 2, 3); - ui->view->setCursor(cur); + QCursor cur(pixmap, 2, 2); + ui->view->viewport()->setCursor(cur); helpLabel->setText(toolTip); ui->view->setShowToolOptions(false); dialogTool = QSharedPointer(new Dialog(pattern, 0, this)); @@ -2201,7 +2201,7 @@ void MainWindow::ArrowTool() ui->view->AllowRubberBand(true); - ui->view->setCursor(Qt::ArrowCursor); + ui->view->viewport()->unsetCursor(); helpLabel->setText(""); ui->view->setShowToolOptions(true); qCDebug(vMainWindow, "Enabled arrow tool.");