ConsoleItem Class | Extending Qt Creator Manual

Extending Qt Creator Manual | ConsoleItem

Extending Qt Creator Manual 4.6.2

# ConsoleItem Class

(Debugger::QmlJS::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::QmlJS::Debugger::Internal::ConsoleItem::ItemType itemType, const int &expression, int doFetch)
int | Q_DECLARE_FLAGS(int, Debugger::QmlJS::Debugger::Internal::ConsoleItem::ItemType)
bool | canFetchMore() const
Debugger::QVariant | data(int column, int role) const
int | expression() const
void | fetchMore()
int | file() const
int | flags(int) const override
Debugger::QmlJS::Debugger::Internal::ConsoleItem::ItemType | itemType() const
int | line() const
bool | setData(int column, const Debugger::QVariant &data, int role)
int | text() const

## Member Type Documentation

### enum ConsoleItem::ItemType

### enum ConsoleItem::Roles

## Member Function Documentation

### ConsoleItem::ConsoleItem(Debugger::QmlJS::Debugger::Internal::ConsoleItem::ItemType itemType, const int &expression, int doFetch)

Default constructs an instance of ConsoleItem.

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

### bool ConsoleItem::canFetchMore() const

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

See also setData().

### int ConsoleItem::expression() const

### void ConsoleItem::fetchMore()

### int ConsoleItem::file() const

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

### Debugger::QmlJS::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().

### int ConsoleItem::text() const