code: moved project version related variables to project class
This commit is contained in:
@@ -32,6 +32,12 @@
|
||||
|
||||
namespace olive {
|
||||
|
||||
// This is the project version that Olive will save
|
||||
const uint Project::kProjectVersion = 211228;
|
||||
|
||||
// This is the minimum project version that Olive can load
|
||||
const uint Project::kProjectMinimumVersion = 210528;
|
||||
|
||||
Project::Project() :
|
||||
is_modified_(false),
|
||||
autorecovery_saved_(true)
|
||||
|
||||
@@ -85,6 +85,9 @@ public:
|
||||
static bool LoadPosition(QXmlStreamReader *reader, quintptr *node_ptr, Node::Position *pos);
|
||||
static void SavePosition(QXmlStreamWriter *writer, Node *node, const Node::Position &pos);
|
||||
|
||||
static const uint kProjectVersion;
|
||||
static const uint kProjectMinimumVersion;
|
||||
|
||||
signals:
|
||||
void NameChanged();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user