本页内容

Utils::TextDisplay Class

class Utils::TextDisplay

文本显示是一个伪组件,其唯一目的是在原本需要使用成本更高的Utils::StringAspect 项的地方,利用Utils::InfoLabel提供一些文本显示功能。更多内容...

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.