src/database/database.h

Thu, 17 Feb 2022 21:00:24 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 17 Feb 2022 21:00:24 +0100
changeset 17
f0bcdbd3d36f
parent 6
f8474f2c5db9
permissions
-rw-r--r--

Forgot one signal in Setup. EditSupplier now has signals to track edit changes. The Window header has ** mark if anything is changed. Added errors message boxes.

#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