更新UI
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
#ifndef BASIC_H
|
||||
#define BASIC_H
|
||||
#include <GlobalDefinitions/DataType.h>
|
||||
#include <GlobalDefinitions/Variable.h>
|
||||
#include <QCoreApplication>
|
||||
#include <QTime>
|
||||
|
||||
#include <QRegularExpression>
|
||||
|
||||
/**
|
||||
* @brief map 映射函数,把x的值,映射到out_min到out_max的范围内
|
||||
@@ -81,4 +82,25 @@ uint8_t extractUInt32_8BitPart(uint32_t data, uint8_t index);
|
||||
* @throws std::out_of_range 当索引超出0-1范围时
|
||||
*/
|
||||
uint16_t extractUInt32_16BitPart(uint32_t data, int index);
|
||||
|
||||
/**
|
||||
* @brief getNodeValue 获取节点内的值
|
||||
* @param nodeId 欲获取的节点文本
|
||||
* @return 类型:QVariant 节点的值
|
||||
*/
|
||||
QVariant getNodeValue(const QString &nodeId);
|
||||
|
||||
/**
|
||||
* @brief getColorStr 获取颜色文本
|
||||
* @param Str 欲获取的文本内容
|
||||
* @return 返回颜色文本
|
||||
*/
|
||||
QString getColorStr(QString Str);
|
||||
|
||||
/**
|
||||
* @brief getColor
|
||||
* @param str 任意颜色字符串
|
||||
* @return QColor(无效 QColor 表示解析失败)
|
||||
*/
|
||||
QColor getColor(const QString &str);
|
||||
#endif // BASIC_H
|
||||
|
||||
Reference in New Issue
Block a user