Loading...
Searching...
No Matches
TypeCompletionComboBox Class Reference

A CompletionComboBox pre-configured for type name autocompletion. More...

Detailed Description

A CompletionComboBox pre-configured for type name autocompletion.

Fetches type names from a TypeContainer in a background thread and populates the completer model. Respects the ui.types.substring and ui.types.maxAutoFeaturesCount settings.

Optionally manages a persistent input history stored in QSettings.

Public Member Functions

 TypeCompletionComboBox (std::optional< BinaryNinja::TypeContainer > typeContainer, QWidget *parent=nullptr, QString existing=QString())
 ~TypeCompletionComboBox ()
void commitHistory ()
 Commit the current text to the persistent input history.
QStringListModel * completionModel () const
Public Member Functions inherited from CompletionComboBox
 CompletionComboBox (QWidget *parent=nullptr)
void setForwardReturnEvents (bool forward)

Additional Inherited Members

Signals inherited from CompletionComboBox
void enterPressed ()
Protected Member Functions inherited from CompletionComboBox
bool event (QEvent *event) override

Constructor & Destructor Documentation

◆ TypeCompletionComboBox()

TypeCompletionComboBox::TypeCompletionComboBox ( std::optional< BinaryNinja::TypeContainer > typeContainer,
QWidget * parent = nullptr,
QString existing = QString() )

◆ ~TypeCompletionComboBox()

TypeCompletionComboBox::~TypeCompletionComboBox ( )

Member Function Documentation

◆ commitHistory()

void TypeCompletionComboBox::commitHistory ( )

Commit the current text to the persistent input history.

◆ completionModel()

QStringListModel * TypeCompletionComboBox::completionModel ( ) const
inline