Sketcher: Redraw constraints on wheel event
=========================================== https://forum.freecadweb.org/viewtopic.php?p=577585#p577585
This commit is contained in:
committed by
abdullahtahiriyo
parent
6397201dc0
commit
23f18505f2
@@ -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()) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user