ignore key events in placement dialog and let parent task panel handle them
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -57,6 +57,7 @@ public:
|
||||
|
||||
protected:
|
||||
void changeEvent(QEvent *e);
|
||||
void keyPressEvent(QKeyEvent*);
|
||||
|
||||
private Q_SLOTS:
|
||||
void on_applyButton_clicked();
|
||||
|
||||
Reference in New Issue
Block a user