mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-20 01:12:15 -07:00
use expandAll
This commit is contained in:
parent
aa0e08a22d
commit
18b8330e8e
1 changed files with 2 additions and 2 deletions
|
|
@ -38,7 +38,7 @@ ShortcutTreeView::ShortcutTreeView(QWidget *parent) : QTreeView(parent)
|
||||||
setSelectionMode(SingleSelection);
|
setSelectionMode(SingleSelection);
|
||||||
setSelectionBehavior(SelectRows);
|
setSelectionBehavior(SelectRows);
|
||||||
|
|
||||||
expandRecursively(QModelIndex());
|
expandAll();
|
||||||
|
|
||||||
connect(&SettingsCache::instance().shortcuts(), &ShortcutsSettings::shortCutChanged, this,
|
connect(&SettingsCache::instance().shortcuts(), &ShortcutsSettings::shortCutChanged, this,
|
||||||
&ShortcutTreeView::refreshShortcuts);
|
&ShortcutTreeView::refreshShortcuts);
|
||||||
|
|
@ -128,5 +128,5 @@ void ShortcutTreeView::currentChanged(const QModelIndex ¤t, const QModelIn
|
||||||
void ShortcutTreeView::updateSearchString(const QString &searchString)
|
void ShortcutTreeView::updateSearchString(const QString &searchString)
|
||||||
{
|
{
|
||||||
proxyModel->setFilterFixedString(searchString);
|
proxyModel->setFilterFixedString(searchString);
|
||||||
expandRecursively(QModelIndex());
|
expandAll();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue