Skip to content
Snippets Groups Projects
Commit b057b707 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

format

parent 364026fc
No related branches found
No related tags found
1 merge request!2630colormap and overlays: correct cursors
Pipeline #148823 passed
...@@ -132,7 +132,7 @@ void MaskGraphicsScene::onActivityChanged(Canvas2DMode::Flag mode) ...@@ -132,7 +132,7 @@ void MaskGraphicsScene::onActivityChanged(Canvas2DMode::Flag mode)
m_proxy->setZooming(zoomMode); m_proxy->setZooming(zoomMode);
for (auto const& [item, overlay] : m_mask2overlay) { for (auto const& [item, overlay] : m_mask2overlay) {
overlay->setAcceptedMouseButtons(zoomMode ? Qt::NoButton : Qt::LeftButton); overlay->setAcceptedMouseButtons(zoomMode ? Qt::NoButton : Qt::LeftButton);
overlay->setCursor(zoomMode ? Qt::ArrowCursor : Qt::SizeAllCursor); overlay->setCursor(zoomMode ? Qt::ArrowCursor : Qt::SizeAllCursor);
} }
m_plot->setCursor(zoomMode ? Qt::PointingHandCursor : Qt::ArrowCursor); m_plot->setCursor(zoomMode ? Qt::PointingHandCursor : Qt::ArrowCursor);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment