Ref T419, use version from IDatastoreObject in CArtifact

* add QVersion
* remove version parts from CArtifact
This commit is contained in:
Klaus Basan
2019-03-04 22:36:59 +01:00
committed by Mat Sutcliffe
parent aabc975889
commit b9c233802f
7 changed files with 22 additions and 28 deletions

View File

@@ -19,8 +19,9 @@
#include <QJsonObject>
#include <QJsonValue>
#include <QObject>
#include <QVersionNumber>
#include <QString>
#include <QObject>
namespace BlackMisc
{
@@ -52,6 +53,12 @@ namespace BlackMisc
//! Version info
const QString &getVersion() const { return m_version; }
//! Version as QVersion
QVersionNumber getQVersion() const;
//! Having a version?s
bool hasVersion() const { return !m_version.isEmpty(); }
//! Version info
void setVersion(const QString &version) { m_version = version; }