Measure: Improve TaskMeasure dialog

+ Use Qt's translation of the Save and Close buttons
+ Use QShortcut instead of eventFilter() because the latter is
  too aggressive eating all Enter and ESC events

This fixes the remaining issues as mentioned at the PR 17109
This commit is contained in:
wmayer
2025-04-16 18:49:19 +02:00
committed by Ladislav Michl
parent f00fbe0070
commit f42f3dc069
2 changed files with 35 additions and 33 deletions

View File

@@ -67,11 +67,13 @@ public:
bool hasSelection();
void clearSelection();
bool eventFilter(QObject* obj, QEvent* event) override;
private:
void setupShortcuts(QWidget* parent);
void tryUpdate();
void onSelectionChanged(const Gui::SelectionChanges& msg) override;
void saveMeasurement();
void quitMeasurement();
Measure::MeasureBase* _mMeasureObject = nullptr;