CommandList Class Reference

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
 

Constructor & Destructor Documentation

◆ CommandList()

CommandList::CommandList ( CommandPalette parent,
const std::vector< CommandListItem > &  items 
)

Member Function Documentation

◆ addRecentItem()

void CommandList::addRecentItem ( const QString &  name)

◆ focusOutEvent()

virtual void CommandList::focusOutEvent ( QFocusEvent *  event)
overrideprotectedvirtual

◆ getActionForItem()

QString CommandList::getActionForItem ( int  row)

◆ index()

QModelIndex CommandList::index ( int  row,
int  col,
const QModelIndex &  parent = QModelIndex() 
) const

◆ keyPressEvent()

virtual void CommandList::keyPressEvent ( QKeyEvent *  event)
overrideprotectedvirtual

◆ setFilter()

void CommandList::setFilter ( CommandListFilter filter)
inline

◆ setFilterText()

void CommandList::setFilterText ( const QString &  text)

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