На цій сторінці

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.