mirror of
https://github.com/CURTLab/LVGLBuilder.git
synced 2025-05-09 03:41:35 +08:00

Save the resolution in the json project file and change the resolution if a new project is loaded
27 lines
448 B
C++
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
|