Extending Qt Creator Manual | OverviewModel

Extending Qt Creator Manual 4.5.2

# OverviewModel Class

(CPlusPlus::OverviewModel)

- List of all members, including inherited members

## Public Types

enum | Role { FileNameRole, LineNumberRole }

## Public Functions

| OverviewModel(QObject *parent = 0)
virtual | ~OverviewModel()
virtual int | columnCount(const QModelIndex &parent = QModelIndex()) const
virtual QVariant | data(const QModelIndex &index, int role = Qt::DisplayRole) const
Document::Ptr | document() const
Qt::ItemFlags | flags(const QModelIndex &index) const
virtual QModelIndex | index(int row, int column, const QModelIndex &parent = QModelIndex()) const
QMimeData * | mimeData(const QModelIndexList &indexes) const
QStringList | mimeTypes() const
virtual QModelIndex | parent(const QModelIndex &child) const
void | rebuild(Document::Ptr doc)
virtual int | rowCount(const QModelIndex &parent = QModelIndex()) const
Qt::DropActions | supportedDragActions() const
Symbol * | symbolFromIndex(const QModelIndex &index) const

## Member Type Documentation

### enum OverviewModel::Role

## Member Function Documentation

### OverviewModel::OverviewModel(QObject *parent = 0)

Default constructs an instance of OverviewModel.

### `[virtual]` OverviewModel::~OverviewModel()

Destroys the instance of OverviewModel. The destructor is virtual.

### `[virtual]` int OverviewModel::columnCount(const QModelIndex &parent = QModelIndex()) const

### `[virtual]` QVariant OverviewModel::data(const QModelIndex &index, int role = Qt::DisplayRole) const

### Document::Ptr OverviewModel::document() const

### Qt::ItemFlags OverviewModel::flags(const QModelIndex &index) const

### `[virtual]` QModelIndex OverviewModel::index(int row, int column, const QModelIndex &parent = QModelIndex()) const

### QMimeData *OverviewModel::mimeData(const QModelIndexList &indexes) const

### QStringList OverviewModel::mimeTypes() const

### `[virtual]` QModelIndex OverviewModel::parent(const QModelIndex &child) const

### void OverviewModel::rebuild(Document::Ptr doc)

### `[virtual]` int OverviewModel::rowCount(const QModelIndex &parent = QModelIndex()) const

### Qt::DropActions OverviewModel::supportedDragActions() const

### Symbol *OverviewModel::symbolFromIndex(const QModelIndex &index) const