На этой странице

Utils::TextDisplay Class

class Utils::TextDisplay

Текстовый дисплей — это фиктивный элемент, единственная цель которого — обеспечить отображение текста с помощью Utils::InfoLabel в тех местах, где в противном случае использовались бы более ресурсоемкие элементы Utils::StringAspect. Подробнее...

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

Публичные функции

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

Переопределённые общедоступные функции

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

Подробное описание

Текстовое отображение не имеет реального значения.

Документация по функциям-членам

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

Создает текстовый дисплей, родительским элементом которого является container. На дисплее отображается текст « message » и значок, обозначающий тип type.

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

Переопределяет: ` BaseAspect::addToLayoutImpl` (Layouting::Layout &parent).

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

Устанавливает « t » в качестве типа информационной метки для визуального отображения данного аспекта.

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.