src/database/database.h

Mon, 14 Nov 2022 15:34:11 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Mon, 14 Nov 2022 15:34:11 +0100
changeset 436
d1a6c269ba6a
parent 6
f8474f2c5db9
permissions
-rw-r--r--

Show product code and name in edit product window title if not a new product.

#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