QETProject have is own database + add widget to edit nomenclature model

QETProject have is own ProjectDataBase, then when the database is
updated, everything that need the database is also updated trough the
signal emitted by the database.
Begin a widget to edit the NomenclatureModel
This commit is contained in:
Claveau Joshua
2020-03-29 18:17:27 +02:00
parent 66abfbe180
commit 8819146a01
16 changed files with 764 additions and 423 deletions

View File

@@ -23,9 +23,8 @@
#include <QSqlQuery>
#include <QPointer>
#include "qetproject.h"
class Element;
class QETProject;
/**
* @brief The projectDataBase class
@@ -43,6 +42,10 @@ class projectDataBase : public QObject
virtual ~projectDataBase() override;
QVector<QStringList> elementsInfoFromQuery(const QString &query);
void updateDB();
signals:
void dataBaseUpdated();
private:
bool createDataBase();