Na tej stronie

Utils::TextDisplay Class

class Utils::TextDisplay

Wyświetlacz tekstowy to fikcyjny element, którego jedynym celem jest wyświetlanie tekstu za pomocą modułu `Utils::InfoLabel` w miejscach, w których w innym przypadku zastosowano by bardziej zasobochłonne elementy typu ` Utils::StringAspect `. Więcej...

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

Funkcje publiczne

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

Ponownie zaimplementowane funkcje publiczne

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

Szczegółowy opis

Wyświetlacz tekstowy nie ma rzeczywistej wartości.

Dokumentacja funkcji składowych

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

Tworzy wyświetlacz tekstowy, którego elementem nadrzędnym jest container. Wyświetlacz pokazuje tekst „ message ” oraz ikonę reprezentującą typ type.

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

Zrealizowano ponownie: BaseAspect::addToLayoutImpl(Layouting::Layout &parent).

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

Ustawia „ t ” jako typ etykiety informacyjnej dla wizualnej reprezentacji tego 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.