|
DtkWidget
DTK Widget module
|
表示标签输入控件 DCrumbEdit类 所含标签的文字样式. 更多...
Public 成员函数 | |
| QColor | tagColor () const |
| DCrumbTextFormat::tagColor | |
| void | setTagColor (const QColor &color) |
| DCrumbTextFormat::setTagColor 设置标签颜色 | |
| QString | text () const |
| DCrumbTextFormat::text | |
| void | setText (const QString &text) |
| DCrumbTextFormat::setText 设置文本内容(标签名称) | |
| QColor | textColor () const |
| DCrumbTextFormat::textColor | |
| void | setTextColor (const QColor &color) |
| DCrumbTextFormat::setTextColor 设置文本颜色 | |
| QBrush | background () const |
| DCrumbTextFormat::background | |
| void | setBackground (const QBrush &background) |
| DCrumbTextFormat::setBackground 设置背景 | |
| int | backgroundRadius () const |
| DCrumbTextFormat::backgroundRadius | |
| void | setBackgroundRadius (int radius) |
| DCrumbTextFormat::setBackgroundRadius 设置背景圆角程度 | |
Protected 成员函数 | |
| DCrumbTextFormat (int objectType) | |
| DCrumbTextFormat (const QTextFormat &fmt) | |
友元 | |
| class | CrumbObjectInterface |
| class | DCrumbEdit |
| class | DCrumbEditPrivate |
表示标签输入控件 DCrumbEdit类 所含标签的文字样式.
DCrumbTextFormat 包含了表示标签输入控件 DCrumbEdit类 内所包含的标签的各种样式属性。 文字属性 text 是能唯一标识和确定一个标签的重要属性, 其他可用的属性包含标签背景颜色,标签文字颜色以及标签圆角半径大小等也可供使用。 通常情况下,建议通过 DCrumbEdit::makeTextFormat() 来构造一个可供使用的 DCrumbTextFormat 对象。若希望自行构造,请留意使用 DCrumbTextFormat::setObjectType 来设置必要的对象类型 (通常应为 QTextFormat::UserObject + 1).
| QBrush DCrumbTextFormat::background | ( | ) | const |
| int DCrumbTextFormat::backgroundRadius | ( | ) | const |
DCrumbTextFormat::backgroundRadius
| void DCrumbTextFormat::setBackground | ( | const QBrush & | background | ) |
DCrumbTextFormat::setBackground 设置背景
| [in] | background | 背景画刷 |
| void DCrumbTextFormat::setBackgroundRadius | ( | int | radius | ) |
DCrumbTextFormat::setBackgroundRadius 设置背景圆角程度
| [in] | radius | 圆角的大小 |
| void DCrumbTextFormat::setTagColor | ( | const QColor & | color | ) |
DCrumbTextFormat::setTagColor 设置标签颜色
| [in] | color | 标签的颜色 |
| void DCrumbTextFormat::setText | ( | const QString & | text | ) |
DCrumbTextFormat::setText 设置文本内容(标签名称)
| [in] | text | 文本内容 |
| void DCrumbTextFormat::setTextColor | ( | const QColor & | color | ) |
DCrumbTextFormat::setTextColor 设置文本颜色
| [in] | color | 文本的颜色 |
| QColor DCrumbTextFormat::tagColor | ( | ) | const |
| QString DCrumbTextFormat::text | ( | ) | const |
| QColor DCrumbTextFormat::textColor | ( | ) | const |