Na této stránce

Utils::TextDisplay Class

class Utils::TextDisplay

Textový displej je fiktivní prvek, jehož jediným účelem je poskytnout zobrazení textu pomocí modulu Utils::InfoLabel v případech, kde by se jinak používaly náročnější prvky typu „ Utils::StringAspect “. Více...

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

Veřejné funkce

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

Přeimplementované veřejné funkce

virtual void addToLayoutImpl(Layouting::Layout &parent) override

Podrobný popis

Textové zobrazení nemá skutečnou hodnotu.

Dokumentace členských funkcí

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

Vytvoří textové zobrazení s nadřazeným prvkem typu container. Zobrazení obsahuje text „ message “ a ikonu představující typ type.

[override virtual] void TextDisplay::addToLayoutImpl(Layouting::Layout &parent)

Přepisuje: BaseAspect::addToLayoutImpl(Layouting::Layout &parent).

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

Nastaví typ informačního štítku „ t “ pro vizuální znázornění tohoto aspektu.

Copyright © The Qt Company Ltd. and other contributors. 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.