Sketcher: Redraw constraints on wheel event

===========================================

https://forum.freecadweb.org/viewtopic.php?p=577585#p577585
This commit is contained in:
Abdullah Tahiri
2022-03-13 10:01:23 +01:00
committed by abdullahtahiriyo
parent 6397201dc0
commit 23f18505f2
2 changed files with 14 additions and 0 deletions

View File

@@ -979,6 +979,19 @@ bool ViewProviderSketch::mouseButtonPressed(int Button, bool pressed, const SbVe
return false;
}
bool ViewProviderSketch::mouseWheelEvent(int delta, const SbVec2s &cursorPos, const Gui::View3DInventorViewer* viewer)
{
assert(isInEditMode());
Q_UNUSED(delta);
Q_UNUSED(cursorPos);
Q_UNUSED(viewer);
editCoinManager->drawConstraintIcons();
return true;
}
void ViewProviderSketch::editDoubleClicked(void)
{
if (preselection.isPreselectPointValid()) {

View File

@@ -522,6 +522,7 @@ public:
virtual bool keyPressed(bool pressed, int key) override;
/// is called when the Provider is in edit and the mouse is clicked
virtual bool mouseButtonPressed(int Button, bool pressed, const SbVec2s& cursorPos, const Gui::View3DInventorViewer* viewer) override;
virtual bool mouseWheelEvent(int delta, const SbVec2s &cursorPos, const Gui::View3DInventorViewer* viewer) override;
//@}
/// Control the overlays appearing on the Tree and reflecting different sketcher states