TextDisplay Class

class Utils::TextDisplay

A text display is a phony aspect with the sole purpose of providing some text display using an Utils::InfoLabel in places where otherwise more expensive Utils::StringAspect items would be used. More...

Header: #include <TextDisplay>
Inherits: Utils::BaseAspect

Public Functions

TextDisplay(AspectContainer *container = nullptr, const QString &message = {}, InfoLabel::InfoType type = InfoLabel::None)
void setIconType(InfoLabel::InfoType t)

Detailed Description

A text display does not have a real value.

Member Function Documentation

[explicit] TextDisplay::TextDisplay(AspectContainer *container = nullptr, const QString &message = {}, InfoLabel::InfoType type = InfoLabel::None)

Constructs a text display with the parent container. The display shows message and an icon representing the type type.

void TextDisplay::setIconType(InfoLabel::InfoType t)

Sets t as the information label type for the visual representation of this aspect.