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.
27 lines
479 B
C++
27 lines
479 B
C++
#ifndef QTPJSONSETTING_H
|
|
#define QTPJSONSETTING_H
|
|
|
|
#include <QtWidgets\qformlayout.h>
|
|
#include <QtCore\qjsonobject.h>
|
|
|
|
class QTpJsonSetting : public QFormLayout
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
QTpJsonSetting(QWidget *parent);
|
|
~QTpJsonSetting();
|
|
void SetJson(const QJsonObject& json) {
|
|
m_json = json;
|
|
}
|
|
QJsonObject GetJson() {
|
|
return m_json;
|
|
}
|
|
private:
|
|
void reconstruct();
|
|
private:
|
|
QJsonObject m_json;
|
|
};
|
|
|
|
#endif // QTPJSONSETTING_H
|