mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-05-23 14:09:59 +02:00
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:
@@ -20,8 +20,6 @@
|
||||
|
||||
#include <QAbstractTableModel>
|
||||
#include <QPointer>
|
||||
#include "projectdatabase.h"
|
||||
|
||||
|
||||
class QETProject;
|
||||
|
||||
@@ -45,10 +43,12 @@ class NomenclatureModel : public QAbstractTableModel
|
||||
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
|
||||
void query(const QString &query);
|
||||
|
||||
private:
|
||||
void dataBaseUpdated();
|
||||
|
||||
private:
|
||||
QPointer<QETProject> m_project;
|
||||
QString m_query;
|
||||
projectDataBase m_database;
|
||||
QVector<QStringList> m_record;
|
||||
QHash<int, QHash<int, QVariant>> m_header_data;
|
||||
QHash<int, QVariant> m_index_0_0_data;
|
||||
|
||||
Reference in New Issue
Block a user