Extending Qt Creator Manual | Macro

Extending Qt Creator Manual 4.7.0

# Macro Class

(Debugger::ProjectExplorer::Macro)

- List of all members, including inherited members

## Public Functions

| Macro()
| Macro(Debugger::QByteArray key, Debugger::QByteArray value, Debugger::ProjectExplorer::MacroType type = MacroType::Define)
| Macro(Debugger::QByteArray key, Debugger::ProjectExplorer::MacroType type = MacroType::Define)
bool | isValid() const
Debugger::QByteArray | toByteArray() const
Debugger::QByteArray | toKeyValue(const Debugger::QByteArray &prefix) const

## Static Public Members

Debugger::ProjectExplorer::Macro | fromKeyValue(const Debugger::QString &utf16text)
Debugger::ProjectExplorer::Macro | fromKeyValue(const Debugger::QByteArray &text)
Debugger::QByteArray | toByteArray(const int &macros)
int | toMacros(const Debugger::QByteArray &)

## Member Function Documentation

### Macro::Macro()

Default constructs an instance of Macro.

### Macro::Macro(Debugger::QByteArray key, Debugger::QByteArray value, Debugger::ProjectExplorer::MacroType type = MacroType::Define)

Default constructs an instance of Macro.

### Macro::Macro(Debugger::QByteArray key, Debugger::ProjectExplorer::MacroType type = MacroType::Define)

Default constructs an instance of Macro.

### `[static]` Debugger::ProjectExplorer::Macro Macro::fromKeyValue(const Debugger::QString &utf16text)

### `[static]` Debugger::ProjectExplorer::Macro Macro::fromKeyValue(const Debugger::QByteArray &text)

### bool Macro::isValid() const

### Debugger::QByteArray Macro::toByteArray() const

### `[static]` Debugger::QByteArray Macro::toByteArray(const int &macros)

### Debugger::QByteArray Macro::toKeyValue(const Debugger::QByteArray &prefix) const

### `[static]` int Macro::toMacros(const Debugger::QByteArray &)