Sat, 11 Jun 2022 19:29:20 +0200
Changed import XML method for beer styles using a temporary struct and native database functions. This is the correct method which gives the correct results.
#ifndef _DATABASE_H #define _DATABASE_H #include <QSqlDatabase> #include <QDebug> #include <QSettings> class DataBase : public QObject { Q_OBJECT public: explicit DataBase(QObject *parent = 0); ~DataBase(); bool openDataBase(bool develop); void closeDataBase(); private: QSqlDatabase db; }; static DataBase *db; #endif