use QVersionNumber and switch to "list of int" standard

This commit is contained in:
Remi Collet
2023-01-12 13:27:55 +01:00
committed by Laurent Trinques
parent 19d867f6a4
commit 038d2d7033
4 changed files with 17 additions and 13 deletions

View File

@@ -98,7 +98,7 @@ class QETProject : public QObject
QString currentDir() const;
QString pathNameTitle() const;
QString title() const;
qreal declaredQElectroTechVersion();
QVersionNumber declaredQElectroTechVersion();
void setTitle(const QString &);
///DEFAULT PROPERTIES
@@ -247,7 +247,7 @@ class QETProject : public QObject
/// Project title
QString project_title_;
/// QElectroTech version declared in the XML document at opening time
qreal m_project_qet_version = -1;
QVersionNumber m_project_qet_version;
/// Whether options were modified
bool m_modified = false;
/// Whether the project is read only