You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AppFlow/CFDStruct/CUIProperty/CUIConfig.h

30 lines
621 B
C

3 weeks ago
#ifndef CUICONFIG_H
#define CUICONFIG_H
#include<QString>
#include<QMap>
#include<QVariant>
3 weeks ago
class CUIConfig
{
public:
CUIConfig(QMap<QString, QVariant> temp);
CUIConfig(QMap<QString, QVariant> temp, QVector<CUIConfig*> sub);
3 weeks ago
void printConfig();
void setValue(QVariant);
QString getPropertyValue(QString);
QVariant getPropertyOriginValue(QString);
QVector<CUIConfig*> getSub();
3 weeks ago
private:
void setDefault();
void setDefault(QString key, QVariant val);
3 weeks ago
private:
QMap<QString, QVariant> property;
QVector<CUIConfig*> sub;
static int labelMinWidth;
3 weeks ago
};
#endif // CUICONFIG_H