ignore key events in placement dialog and let parent task panel handle them

This commit is contained in:
wmayer
2018-09-11 21:12:04 +02:00
parent 8f3a53c24c
commit faad5ea273
2 changed files with 8 additions and 0 deletions

View File

@@ -310,6 +310,13 @@ void Placement::on_applyIncrementalPlacement_toggled(bool on)
}
}
void Placement::keyPressEvent(QKeyEvent* ke)
{
// The placement dialog is embedded into a task panel
// which is a parent widget and will handle the event
ke->ignore();
}
void Placement::reject()
{
Base::Placement plm;

View File

@@ -57,6 +57,7 @@ public:
protected:
void changeEvent(QEvent *e);
void keyPressEvent(QKeyEvent*);
private Q_SLOTS:
void on_applyButton_clicked();