Commit 3020fac
committed
Improve preferences search UX, navigation, and add footer
- Enhanced search result selection to scroll exactly to the clicked
item using `QTimer::singleShot` and `mapTo` for robust positioning.
- Added a 50ms debounce timer for search to improve responsiveness.
- Factored out `getSearchableText` helper for consistent search matching.
- Added a footer to the preferences list in `configdialog.ui` with
text "The road goes no further." and a centered "Back to top" button.
- Refactored `ConfigDialog` to use `QSignalBlocker` for robust sidebar
synchronization and removed the manual `m_suppressScrollSync` flag.
- Improved `slot_onScroll` to ensure the last section is selected in
the sidebar when reaching the bottom.
- Updated `slot_cancel` to call `reject()` and improved metatype safety
for widget pointers in search results using `QObject*`.
- Applied clang-format.1 parent 21cae4e commit 3020fac
2 files changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | 127 | | |
131 | 128 | | |
132 | 129 | | |
| |||
0 commit comments