From f7e649783d1f1343550050c6cc3782609a0cae8a Mon Sep 17 00:00:00 2001 From: tetektoza Date: Sun, 19 Oct 2025 22:41:40 +0200 Subject: [PATCH] Gui: Add additional preferences for Clarify Select's long press to Prefs As the title says. Two preferences, that reflect what has been added previously - now the users can disable LMB at all, or increase the timeout through prefs. --- .../PreferencePages/DlgSettingsNavigation.cpp | 4 + .../PreferencePages/DlgSettingsNavigation.ui | 128 +++++++++++++++++- 2 files changed, 131 insertions(+), 1 deletion(-) diff --git a/src/Gui/PreferencePages/DlgSettingsNavigation.cpp b/src/Gui/PreferencePages/DlgSettingsNavigation.cpp index 97dd29302d..93cad16387 100644 --- a/src/Gui/PreferencePages/DlgSettingsNavigation.cpp +++ b/src/Gui/PreferencePages/DlgSettingsNavigation.cpp @@ -94,6 +94,8 @@ void DlgSettingsNavigation::saveSettings() ui->spinBoxZoomStep->onSave(); ui->spinBoxAnimationDuration->onSave(); ui->checkBoxSpinningAnimations->onSave(); + ui->checkBoxEnableLongPressClarifySelection->onSave(); + ui->spinBoxLongPressTimeout->onSave(); ui->qspinNewDocScale->onSave(); ui->prefStepByTurn->onSave(); ui->naviCubeCorner->onSave(); @@ -144,6 +146,8 @@ void DlgSettingsNavigation::loadSettings() ui->spinBoxZoomStep->onRestore(); ui->spinBoxAnimationDuration->onRestore(); ui->checkBoxSpinningAnimations->onRestore(); + ui->checkBoxEnableLongPressClarifySelection->onRestore(); + ui->spinBoxLongPressTimeout->onRestore(); ui->qspinNewDocScale->onRestore(); ui->prefStepByTurn->onRestore(); ui->naviCubeCorner->onRestore(); diff --git a/src/Gui/PreferencePages/DlgSettingsNavigation.ui b/src/Gui/PreferencePages/DlgSettingsNavigation.ui index 1a62a40116..d2ba5d1510 100644 --- a/src/Gui/PreferencePages/DlgSettingsNavigation.ui +++ b/src/Gui/PreferencePages/DlgSettingsNavigation.ui @@ -850,6 +850,99 @@ Mouse tilting is not disabled by this setting. + + + + Clarify Selection + + + + + + Enable Clarify Selection on long press of left mouse button. +When enabled, holding left mouse button shows a menu to select overlapping objects. +Some navigation styles (OpenInventor, Gesture, OpenSCAD) require Ctrl+LMB instead of just LMB. + + + Enable long press clarify selection + + + true + + + EnableLongPressClarifySelection + + + View + + + + + + + Time in seconds to hold left mouse button before showing clarify selection menu + + + Long press timeout + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + + + + + + 80 + 16777215 + + + + Duration in seconds to hold left mouse button before clarify selection is triggered + + + s + + + 1 + + + 0.300000000000000 + + + 3.000000000000000 + + + 0.100000000000000 + + + 1.000000000000000 + + + LongPressTimeout + + + View + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + @@ -908,5 +1001,38 @@ Mouse tilting is not disabled by this setting. - + + + checkBoxEnableLongPressClarifySelection + toggled(bool) + spinBoxLongPressTimeout + setEnabled(bool) + + + 274 + 867 + + + 274 + 897 + + + + + checkBoxEnableLongPressClarifySelection + toggled(bool) + labelLongPressTimeout + setEnabled(bool) + + + 274 + 867 + + + 100 + 897 + + + +