Extending Qt Creator Manual | ConsoleItem

Extending Qt Creator Manual 4.7.0

# ConsoleItem Class

(Debugger::Debugger::Internal::ConsoleItem)

- List of all members, including inherited members

## Public Types

enum | ItemType { DefaultType, DebugType, WarningType, ErrorType, InputType, AllTypes }
enum | Roles { TypeRole, FileRole, LineRole, ExpressionRole }

## Public Functions

| ConsoleItem(Debugger::Debugger::Internal::ConsoleItem::ItemType itemType, const Debugger::QString &expression, std::function<void (ConsoleItem *)> doFetch)
int | Q_DECLARE_FLAGS(int, Debugger::Debugger::Internal::ConsoleItem::ItemType)
bool | canFetchMore() const
Debugger::QVariant | data(int column, int role) const
Debugger::QString | expression() const
void | fetchMore()
Debugger::QString | file() const
int | flags(int) const override
Debugger::Debugger::Internal::ConsoleItem::ItemType | itemType() const
int | line() const
bool | setData(int column, const Debugger::QVariant &data, int role)
Debugger::QString | text() const

## Member Type Documentation

### enum ConsoleItem::ItemType

### enum ConsoleItem::Roles

## Member Function Documentation

### ConsoleItem::ConsoleItem(Debugger::Debugger::Internal::ConsoleItem::ItemType itemType, const Debugger::QString &expression, std::function<void (ConsoleItem *)> doFetch)

Default constructs an instance of ConsoleItem.

### int ConsoleItem::Q_DECLARE_FLAGS(int, Debugger::Debugger::Internal::ConsoleItem::ItemType)

### bool ConsoleItem::canFetchMore() const

### Debugger::QVariant ConsoleItem::data(int column, int role) const

See also setData().

### Debugger::QString ConsoleItem::expression() const

### void ConsoleItem::fetchMore()

### Debugger::QString ConsoleItem::file() const

### int ConsoleItem::flags(int) const

### Debugger::Debugger::Internal::ConsoleItem::ItemType ConsoleItem::itemType() const

### int ConsoleItem::line() const

### bool ConsoleItem::setData(int column, const Debugger::QVariant &data, int role)

See also data().

### Debugger::QString ConsoleItem::text() const