ui: mouse cursor override

mouse cursor override in qtmainwindow removed, mouse cursor for codearea and graphview set to arrow
This commit is contained in:
Andreas Stallinger
2016-01-13 17:15:53 +01:00
parent 99776f0242
commit 047490512b
4 changed files with 6 additions and 2 deletions
+3
View File
@@ -50,6 +50,7 @@ void QtGraphicsView::mouseReleaseEvent(QMouseEvent *event)
}
QGraphicsView::mouseReleaseEvent(event);
viewport()->setCursor(Qt::ArrowCursor);
}
@@ -88,6 +89,8 @@ void QtGraphView::initView()
view->setScene(scene);
view->setDragMode(QGraphicsView::ScrollHandDrag);
view->setRenderHints(QPainter::Antialiasing);
view->viewport()->setCursor(Qt::ArrowCursor);
widget->layout()->addWidget(view);