Classes | |
| struct | CommandListItem |
| class | CommandListDelegate |
| class | CommandListModel |
| class | CommandList |
| class | CommandListFilter |
| class | CommandPalette |
| class CommandListDelegate |
Public Member Functions | |
| CommandListDelegate (QWidget *parent) | |
| virtual void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &idx) const override |
| virtual QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override |
| CommandListDelegate::CommandListDelegate | ( | QWidget * | parent | ) |
|
overridevirtual |
|
overridevirtual |
| class CommandListModel |
Public Member Functions | |
| CommandListModel (QWidget *parent, const std::vector< CommandListItem > &items) | |
| virtual QModelIndex | index (int row, int col, const QModelIndex &parent) const override |
| virtual QModelIndex | parent (const QModelIndex &i) const override |
| virtual bool | hasChildren (const QModelIndex &parent) const override |
| virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| virtual int | columnCount (const QModelIndex &parent) const override |
| virtual QVariant | data (const QModelIndex &i, int role) const override |
| QString | getActionForItem (int row) |
| void | setFilterText (const QString &text) |
| size_t | getRecentPosition (const QString &name) const |
| void | addRecentItem (const QString &name) |
| CommandListModel::CommandListModel | ( | QWidget * | parent, |
| const std::vector< CommandListItem > & | items ) |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
| QString CommandListModel::getActionForItem | ( | int | row | ) |
| void CommandListModel::setFilterText | ( | const QString & | text | ) |
| size_t CommandListModel::getRecentPosition | ( | const QString & | name | ) | const |
| void CommandListModel::addRecentItem | ( | const QString & | name | ) |
| class CommandList |
Public Member Functions | |
| CommandList (CommandPalette *parent, const std::vector< CommandListItem > &items) | |
| void | setFilter (CommandListFilter *filter) |
| void | setFilterText (const QString &text) |
| QString | getActionForItem (int row) |
| QModelIndex | index (int row, int col, const QModelIndex &parent=QModelIndex()) const |
| void | addRecentItem (const QString &name) |
Protected Member Functions | |
| virtual void | keyPressEvent (QKeyEvent *event) override |
| virtual void | focusOutEvent (QFocusEvent *event) override |
| CommandList::CommandList | ( | CommandPalette * | parent, |
| const std::vector< CommandListItem > & | items ) |
|
inline |
| void CommandList::setFilterText | ( | const QString & | text | ) |
| QString CommandList::getActionForItem | ( | int | row | ) |
| QModelIndex CommandList::index | ( | int | row, |
| int | col, | ||
| const QModelIndex & | parent = QModelIndex() ) const |
| void CommandList::addRecentItem | ( | const QString & | name | ) |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
| class CommandListFilter |
Public Member Functions | |
| CommandListFilter (CommandPalette *parent, CommandList *list) | |
Protected Member Functions | |
| bool | event (QEvent *event) override |
| virtual void | keyPressEvent (QKeyEvent *event) override |
| virtual void | focusOutEvent (QFocusEvent *event) override |
| CommandListFilter::CommandListFilter | ( | CommandPalette * | parent, |
| CommandList * | list ) |
|
overrideprotected |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
| class CommandPalette |
Public Member Functions | |
| CommandPalette (QWidget *parent, UIActionHandler *handler) | |
| CommandPalette (QWidget *parent, UIActionHandler *handler, const UIActionContext &context) | |
| void | focusInput () |
| void | activateFocusedItem () |
| Activate the focused item, or topmost item if there is no selection. | |
| void | selectFirstItem () |
| void | close (bool restoreFocus=true) |
| CommandPalette::CommandPalette | ( | QWidget * | parent, |
| UIActionHandler * | handler ) |
| CommandPalette::CommandPalette | ( | QWidget * | parent, |
| UIActionHandler * | handler, | ||
| const UIActionContext & | context ) |
| void CommandPalette::focusInput | ( | ) |
| void CommandPalette::activateFocusedItem | ( | ) |
Activate the focused item, or topmost item if there is no selection.
| void CommandPalette::selectFirstItem | ( | ) |
| void CommandPalette::close | ( | bool | restoreFocus = true | ) |