src/database/database.h

Tue, 08 Mar 2022 16:15:31 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Tue, 08 Mar 2022 16:15:31 +0100
changeset 51
355100088e1f
parent 6
f8474f2c5db9
permissions
-rw-r--r--

When editing mash step cells the table is updated. The combobox changes are finally working too.

#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

mercurial