Add new summary table (WIP)

This commit is contained in:
Claveau Joshua
2020-06-18 18:52:29 +02:00
parent 80b5029cd1
commit ec5f537da4
21 changed files with 1079 additions and 524 deletions

View File

@@ -32,8 +32,8 @@
#include "elementtextitemgroup.h"
#include "qetgraphicstableitem.h"
#include "graphicstablepropertieseditor.h"
#include "nomenclaturemodel.h"
#include "nomenclaturemodelpropertieswidget.h"
#include "projectdbmodelpropertieswidget.h"
#include "projectdbmodel.h"
/**
* @brief PropertiesEditorFactory::propertiesEditor
@@ -48,15 +48,15 @@ PropertiesEditorWidget *PropertiesEditorFactory::propertiesEditor(QAbstractItemM
Q_UNUSED(editor)
Q_UNUSED(parent)
if (auto m = static_cast<NomenclatureModel *>(model))
if (auto m = static_cast<ProjectDBModel *>(model))
{
if (editor &&
editor->metaObject()->className() == NomenclatureModelPropertiesWidget::staticMetaObject.className())
editor->metaObject()->className() == ProjectDBModelPropertiesWidget::staticMetaObject.className())
{
static_cast<NomenclatureModelPropertiesWidget *>(editor)->setModel(m);
static_cast<ProjectDBModelPropertiesWidget *>(editor)->setModel(m);
return editor;
}
return new NomenclatureModelPropertiesWidget(m, parent);
return new ProjectDBModelPropertiesWidget(m, parent);
}
return nullptr;
}