属性组
更多...
#include <DAProperties.h>
◆ constProperties()
| const DAProperties & DA::DAPropertiesGroup::constProperties |
( |
const QString & |
group | ) |
const |
◆ getProperties()
| DAProperties DA::DAPropertiesGroup::getProperties |
( |
const QString & |
group | ) |
|
◆ getProperty() [1/2]
| QVariant DA::DAPropertiesGroup::getProperty |
( |
const QString & |
group, |
|
|
const QString & |
key |
|
) |
| const |
获取属性
- 参数
-
- 返回
- 如果不存在分组或者键值返回QVariant(),如果存在返回对应属性
◆ getProperty() [2/2]
| QVariant DA::DAPropertiesGroup::getProperty |
( |
const QString & |
group, |
|
|
const QString & |
key, |
|
|
const QVariant & |
defaultProperty |
|
) |
| const |
获取属性
- 参数
-
| group | 分组 |
| key | 键值 |
| defaultProperty | 默认值 |
- 返回
- 如果不存在分组或者键值返回defaultProperty,如果存在返回对应属性
◆ hasGroup()
| bool DA::DAPropertiesGroup::hasGroup |
( |
const QString & |
group | ) |
|
◆ properties()
| DAProperties & DA::DAPropertiesGroup::properties |
( |
const QString & |
group | ) |
|
◆ setProperties()
| void DA::DAPropertiesGroup::setProperties |
( |
const QString & |
group, |
|
|
const DAProperties & |
propertys |
|
) |
| |
◆ setProperty()
| void DA::DAPropertiesGroup::setProperty |
( |
const QString & |
group, |
|
|
const QString & |
key, |
|
|
const QVariant & |
value |
|
) |
| |
该类的文档由以下文件生成:
- /home/runner/work/data-workbench/data-workbench/src/DAUtils/DAProperties.h
- /home/runner/work/data-workbench/data-workbench/src/DAUtils/DAProperties.cpp