fix: Add and emit toolDeactivated signal in ViewportWidget
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
@@ -453,6 +453,7 @@ void ViewportWidget::keyPressEvent(QKeyEvent *event)
|
|||||||
if (event->key() == Qt::Key_Escape) {
|
if (event->key() == Qt::Key_Escape) {
|
||||||
if (m_isDefiningLine) {
|
if (m_isDefiningLine) {
|
||||||
m_isDefiningLine = false;
|
m_isDefiningLine = false;
|
||||||
|
emit toolDeactivated();
|
||||||
update();
|
update();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ public slots:
|
|||||||
signals:
|
signals:
|
||||||
void lineAdded(const gp_Pnt& start, const gp_Pnt& end);
|
void lineAdded(const gp_Pnt& start, const gp_Pnt& end);
|
||||||
void planeSelected(SketchPlane plane);
|
void planeSelected(SketchPlane plane);
|
||||||
|
void toolDeactivated();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void initializeGL() override;
|
void initializeGL() override;
|
||||||
|
|||||||
Reference in New Issue
Block a user