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(Utils::AspectContainer *container, const QString &message = {}, InfoLabel::InfoType type = InfoLabel::None)
void setIconType(InfoLabel::InfoType t)

Reimplemented Public Functions

virtual void addToLayout(Layouting::LayoutItem &parent) override

Detailed Description

A text display does not have a real value.

Member Function Documentation

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

Constructs a text display showing the message with an icon representing type type.

[override virtual] void TextDisplay::addToLayout(Layouting::LayoutItem &parent)

Reimplements: BaseAspect::addToLayout(Layouting::LayoutItem &parent).

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

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

© 2023 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.