|
DtkWidget
DTK Widget module
|
提供标准项 item,通常用于模型/视图,或模型-代理-视图里面,用以提供标准的 item 控件. 更多...
Public 成员函数 | |
| virtual | ~DStandardItem () |
| 析构函数 | |
| void | setActionList (Qt::Edge edge, const DViewItemActionList &list) |
| 设置 actionList edge 选用数值方向的枚举值, 表示设置 list 是在本对象 DStandardItem 的哪一个区域; edge是相对于 item 的内容区域的,内容区域指的是 item 自身的图标和文字所在区域,也就是通过 setIcon和setText设置的内容的显示区域。 list 许多 actiontem 的集合的 list 列表 | |
| DViewItemActionList | actionList (Qt::Edge edge) const |
| 获取项 item 的集合列表 list edge edge是相对于 item 的内容区域的,内容区域指的是 item 自身的图标和文字所在区域,也就是通过 setIcon和setText设置的内容的显示区域。 | |
| void | setTextActionList (const DViewItemActionList &list) |
| 设置项 item 的集合列表 list, 只显示有 text 的 DViewItemActionList 集合 项 item 的集合列表 list, 只显示文字的 item 的集合 一个参考代码片段,使用 setTextActionList(): | |
| DViewItemActionList | textActionList () const |
| 返回 "扩充的文本内容列表" 数据 | |
| void | setTextColorRole (DPalette::ColorType role) |
| void | setTextColorRole (DPalette::ColorRole role) |
| DPalette::ColorType | textColorType () const |
| DPalette::ColorRole | textColorRole () const |
| void | setBackgroundRole (DPalette::ColorType role) |
| void | setBackgroundRole (DPalette::ColorRole role) |
| DPalette::ColorType | backgroundType () const |
| DPalette::ColorRole | backgroundRole () const |
| void | setFontSize (DFontSizeManager::SizeType size) |
| QFont | font () const |
| void | setDciIcon (const DDciIcon &dciIcon) |
| DDciIcon | dciIcon () const |
| virtual QStandardItem * | clone () const override |
提供标准项 item,通常用于模型/视图,或模型-代理-视图里面,用以提供标准的 item 控件.
\inmodule dtkwidget
| DViewItemActionList Dtk::Widget::DStandardItem::actionList | ( | Qt::Edge | edge | ) | const |
获取项 item 的集合列表 list edge edge是相对于 item 的内容区域的,内容区域指的是 item 自身的图标和文字所在区域,也就是通过 setIcon和setText设置的内容的显示区域。
| void Dtk::Widget::DStandardItem::setTextActionList | ( | const DViewItemActionList & | list | ) |
设置项 item 的集合列表 list, 只显示有 text 的 DViewItemActionList 集合 项 item 的集合列表 list, 只显示文字的 item 的集合 一个参考代码片段,使用 setTextActionList():