RunConfigurationModel Class | Extending Qt Creator Manual

Extending Qt Creator Manual | RunConfigurationModel

Extending Qt Creator Manual 4.4.1

# RunConfigurationModel Class

(ProjectExplorer::RunConfigurationModel)

The RunConfigurationModel class provides a model to represent the run configurations of a target. More...

Header: | #include <RunConfigurationModel>

- List of all members, including inherited members

## Public Functions

| RunConfigurationModel(Target *target, QObject *parent = nullptr)
int | columnCount(const QModelIndex &parent = QModelIndex()) const override
QVariant | data(const QModelIndex &index, int role = Qt::DisplayRole) const override
QModelIndex | indexFor(RunConfiguration *rc)
int | rowCount(const QModelIndex &parent = QModelIndex()) const override
RunConfiguration * | runConfigurationAt(int i)
RunConfiguration * | runConfigurationFor(const QModelIndex &idx)

## Detailed Description

The RunConfigurationModel class provides a model to represent the run configurations of a target.

To be used in the dropdown lists of comboboxes. Automatically adjusts itself to added and removed run configurations.

## Member Function Documentation

### RunConfigurationModel::RunConfigurationModel(Target *target, QObject *parent = nullptr)

Default constructs an instance of RunConfigurationModel.

### int RunConfigurationModel::columnCount(const QModelIndex &parent = QModelIndex()) const

### QVariant RunConfigurationModel::data(const QModelIndex &index, int role = Qt::DisplayRole) const

### QModelIndex RunConfigurationModel::indexFor(RunConfiguration *rc)

### int RunConfigurationModel::rowCount(const QModelIndex &parent = QModelIndex()) const

### RunConfiguration *RunConfigurationModel::runConfigurationAt(int i)

### RunConfiguration *RunConfigurationModel::runConfigurationFor(const QModelIndex &idx)