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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user