|
玉兔远程控制 0.1.0-bate14
|
包含复选框的表头 更多...
#include <CheckBoxHeader.h>


信号 | |
| void | sigCheckStateChanged (int index, Qt::CheckState state) |
Public 成员函数 | |
| CCheckBoxHeader (Qt::Orientation orientation, QWidget *parent=nullptr) | |
| void | SetCheckable (int index, bool checkable, Qt::CheckState state=Qt::Unchecked) |
| 设置是否显示复选框 | |
| bool | isCheckable (int index) const |
| void | SetCheckState (int index, Qt::CheckState state) |
| 设置表头复选框状态 | |
| Qt::CheckState | GetCheckState (int index) const |
Protected 成员函数 | |
| void | paintSection (QPainter *painter, const QRect &rect, int logicalIndex) const override |
| void | mousePressEvent (QMouseEvent *event) override |
Private 成员函数 | |
| QRect | CheckboxRect (const QRect §ionRect) const |
| void | DrawText (QPainter *painter, const QRect &rect, const QString &text, Qt::Alignment alignment) const |
| void | DrawCheckBox (QPainter *painter, const QRect &rect, Qt::CheckState state, bool enabled) const |
Private 属性 | |
| QHash< int, Qt::CheckState > | m_CheckableSections |
包含复选框的表头
在文件 CheckBoxHeader.h 第 18 行定义.
|
private |
在文件 CheckBoxHeader.cpp 第 103 行定义.
|
private |
在文件 CheckBoxHeader.cpp 第 160 行定义.
|
private |
在文件 CheckBoxHeader.cpp 第 187 行定义.
| Qt::CheckState CCheckBoxHeader::GetCheckState | ( | int | index | ) | const |
在文件 CheckBoxHeader.cpp 第 45 行定义.
| bool CCheckBoxHeader::isCheckable | ( | int | index | ) | const |
在文件 CheckBoxHeader.cpp 第 88 行定义.
|
overrideprotected |
在文件 CheckBoxHeader.cpp 第 207 行定义.
|
overrideprotected |
在文件 CheckBoxHeader.cpp 第 115 行定义.
| void CCheckBoxHeader::SetCheckable | ( | int | index, |
| bool | checkable, | ||
| Qt::CheckState | state = Qt::Unchecked ) |
| void CCheckBoxHeader::SetCheckState | ( | int | index, |
| Qt::CheckState | state ) |
|
private |
在文件 CheckBoxHeader.h 第 51 行定义.