LVGLBuilder/LVGLProject.h
CURTLab 9a6a7a7c90 Save the resolution in the json project file
Save the resolution in the json project file and change the resolution if a new project is loaded
2020-01-18 13:18:08 +01:00

27 lines
448 B
C++

#ifndef LVGLPROJECT_H
#define LVGLPROJECT_H
#include <QString>
#include <QSize>
class LVGLProject
{
public:
LVGLProject();
LVGLProject(const QString &name, QSize resolution);
QString name() const;
QSize resolution() const;
static LVGLProject *load(const QString &fileName);
bool save(const QString &fileName) const;
bool exportCode(const QString &path) const;
private:
QString m_name;
QSize m_resolution;
};
#endif // LVGLPROJECT_H