Implementation of "migration manager" to fix placement of config files issue appeared after moving from Qt 5 to Qt 6

This commit is contained in:
Dmitriy Karpushin 2023-03-23 15:13:15 +03:00
parent c0bb06bf49
commit 3a5317f16a
4 changed files with 116 additions and 0 deletions

24
client/migrations.h Normal file
View file

@ -0,0 +1,24 @@
#ifndef MIGRATIONS_H
#define MIGRATIONS_H
#include <QObject>
class Migrations : public QObject
{
Q_OBJECT
public:
explicit Migrations(QObject *parent = nullptr);
void doMigrations();
private:
void migrateV3();
private:
int currentMajor = 0;
int currentMinor = 0;
int currentMicro = 0;
int currentPatch = 0;
};
#endif // MIGRATIONS_H