Fix bug with mouse cursor.
--HG-- branch : develop
This commit is contained in:
parent
5fa0324185
commit
7fd93eff5b
|
@ -568,8 +568,8 @@ void MainWindow::SetToolButton(bool checked, Tool t, const QString &cursor, cons
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
QPixmap pixmap(cursorResource);
|
QPixmap pixmap(cursorResource);
|
||||||
QCursor cur(pixmap, 2, 3);
|
QCursor cur(pixmap, 2, 2);
|
||||||
ui->view->setCursor(cur);
|
ui->view->viewport()->setCursor(cur);
|
||||||
helpLabel->setText(toolTip);
|
helpLabel->setText(toolTip);
|
||||||
ui->view->setShowToolOptions(false);
|
ui->view->setShowToolOptions(false);
|
||||||
dialogTool = QSharedPointer<Dialog>(new Dialog(pattern, 0, this));
|
dialogTool = QSharedPointer<Dialog>(new Dialog(pattern, 0, this));
|
||||||
|
@ -2201,7 +2201,7 @@ void MainWindow::ArrowTool()
|
||||||
|
|
||||||
ui->view->AllowRubberBand(true);
|
ui->view->AllowRubberBand(true);
|
||||||
|
|
||||||
ui->view->setCursor(Qt::ArrowCursor);
|
ui->view->viewport()->unsetCursor();
|
||||||
helpLabel->setText("");
|
helpLabel->setText("");
|
||||||
ui->view->setShowToolOptions(true);
|
ui->view->setShowToolOptions(true);
|
||||||
qCDebug(vMainWindow, "Enabled arrow tool.");
|
qCDebug(vMainWindow, "Enabled arrow tool.");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user