The ShortcutsConfigPage class Configuration page listing every shortcut registered with ShortcutManager, letting the user rebind, reset and search them. Bindings are only persisted (via ShortcutManager::setSequence()) when applyConf() runs, i.e. when the user validates the surrounding ConfigDialog.
More...
#include <shortcutsconfigpage.h>
|
| void | populateTable () |
| | ShortcutsConfigPage::populateTable Fill the tree with one collapsible top-level node per category and one child per shortcut known to ShortcutManager, sorted by category then action name.
|
| void | applyFilter () |
| | ShortcutsConfigPage::applyFilter Hide every row that doesn't match both the search box and the quick filter. The text query is split on whitespace and every term must match the category, action name or current sequence (accent- and case-insensitively). Matching category nodes are expanded so hits are not hidden inside collapsed groups, and the "N actions" label tracks how many actions remain visible.
|
| void | resetRow (int row_index) |
| | ShortcutsConfigPage::resetRow Reset the shortcut editor at row_index to its default sequence.
|
The ShortcutsConfigPage class Configuration page listing every shortcut registered with ShortcutManager, letting the user rebind, reset and search them. Bindings are only persisted (via ShortcutManager::setSequence()) when applyConf() runs, i.e. when the user validates the surrounding ConfigDialog.
◆ QuickFilter
| Enumerator |
|---|
| ShowAll | |
| BoundOnly | |
| UnboundOnly | |
| ConflictsOnly | |
◆ ShortcutsConfigPage()
| ShortcutsConfigPage::ShortcutsConfigPage |
( |
QWidget * | parent = nullptr | ) |
|
|
explicit |
◆ ~ShortcutsConfigPage()
| ShortcutsConfigPage::~ShortcutsConfigPage |
( |
| ) |
|
|
override |
◆ applyConf()
| void ShortcutsConfigPage::applyConf |
( |
| ) |
|
|
overridevirtual |
◆ applyFilter()
| void ShortcutsConfigPage::applyFilter |
( |
| ) |
|
|
private |
ShortcutsConfigPage::applyFilter Hide every row that doesn't match both the search box and the quick filter. The text query is split on whitespace and every term must match the category, action name or current sequence (accent- and case-insensitively). Matching category nodes are expanded so hits are not hidden inside collapsed groups, and the "N actions" label tracks how many actions remain visible.
◆ checkConflicts
| void ShortcutsConfigPage::checkConflicts |
( |
| ) |
|
|
privateslot |
ShortcutsConfigPage::checkConflicts Highlight every row whose currently-edited sequence is shared, non-empty, with another row, and explain the conflict in the shortcut editor's tooltip.
◆ filterRows
| void ShortcutsConfigPage::filterRows |
( |
const QString & | filter_text | ) |
|
|
privateslot |
◆ icon()
| QIcon ShortcutsConfigPage::icon |
( |
| ) |
const |
|
overridevirtual |
- Returns
- the configuration page icon
Implements ConfigPage.
◆ populateTable()
| void ShortcutsConfigPage::populateTable |
( |
| ) |
|
|
private |
◆ quickFilterChanged
| void ShortcutsConfigPage::quickFilterChanged |
( |
int | index | ) |
|
|
privateslot |
◆ resetAllRows
| void ShortcutsConfigPage::resetAllRows |
( |
| ) |
|
|
privateslot |
◆ resetRow()
| void ShortcutsConfigPage::resetRow |
( |
int | row_index | ) |
|
|
private |
◆ title()
| QString ShortcutsConfigPage::title |
( |
| ) |
const |
|
overridevirtual |
- Returns
- the configuration page title
Implements ConfigPage.
◆ m_count_label
| QLabel* ShortcutsConfigPage::m_count_label |
|
private |
◆ m_filter_edit
| QLineEdit* ShortcutsConfigPage::m_filter_edit |
|
private |
◆ m_quick_filter
| QComboBox* ShortcutsConfigPage::m_quick_filter |
|
private |
◆ m_rows
| QList<Row> ShortcutsConfigPage::m_rows |
|
private |
◆ m_tree
| QTreeWidget* ShortcutsConfigPage::m_tree |
|
private |
The documentation for this class was generated from the following files: