Option to display only the current span in smithchart

This commit is contained in:
Jan Käberich 2020-11-06 13:05:09 +01:00
parent c3bcb70d87
commit 1dab72238b
12 changed files with 194 additions and 60 deletions

View file

@ -40,6 +40,7 @@ bool SIUnitEdit::eventFilter(QObject *, QEvent *event)
if(key == Qt::Key_Escape) {
// abort editing process and set old value
setValueQuiet(_value);
emit editingAborted();
clearFocus();
return true;
}
@ -62,6 +63,7 @@ bool SIUnitEdit::eventFilter(QObject *, QEvent *event)
parseNewValue(1.0);
} else {
setValueQuiet(_value);
emit editingAborted();
}
}
return false;

View file

@ -20,6 +20,7 @@ public slots:
signals:
void valueChanged(double newvalue);
void valueUpdated(QWidget *w);
void editingAborted();
protected:
bool eventFilter(QObject *obj, QEvent *event) override;
private: