Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
ShortcutTreeView Class Reference

#include <shortcut_treeview.h>

Inheritance diagram for ShortcutTreeView:
[legend]
Collaboration diagram for ShortcutTreeView:
[legend]

Public Slots

void updateSearchString (const QString &searchString)

Signals

void currentItemChanged (const QString &shortcut)

Public Member Functions

 ShortcutTreeView (QWidget *parent)
void retranslateUi ()

Protected Member Functions

void currentChanged (const QModelIndex &current, const QModelIndex &previous) override

Private Slots

void refreshShortcuts ()

Private Member Functions

void populateShortcutsModel ()

Private Attributes

QStandardItemModel * shortcutsModel
ShortcutFilterProxyModelproxyModel

Constructor & Destructor Documentation

◆ ShortcutTreeView()

ShortcutTreeView::ShortcutTreeView ( QWidget * parent)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ currentChanged()

void ShortcutTreeView::currentChanged ( const QModelIndex & current,
const QModelIndex & previous )
overrideprotected
Here is the call graph for this function:

◆ currentItemChanged

void ShortcutTreeView::currentItemChanged ( const QString & shortcut)
signal
Here is the caller graph for this function:

◆ populateShortcutsModel()

void ShortcutTreeView::populateShortcutsModel ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ refreshShortcuts

void ShortcutTreeView::refreshShortcuts ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retranslateUi()

void ShortcutTreeView::retranslateUi ( )
Here is the call graph for this function:

◆ updateSearchString

void ShortcutTreeView::updateSearchString ( const QString & searchString)
slot

The search string is split by word. A String is a match as long as it contains all the words in the search string in order

Here is the caller graph for this function:

Member Data Documentation

◆ proxyModel

ShortcutFilterProxyModel* ShortcutTreeView::proxyModel
private

◆ shortcutsModel

QStandardItemModel* ShortcutTreeView::shortcutsModel
private

The documentation for this class was generated from the following files: