Add nomenclature model

Add class NomenclatureModel witch is used with QetGraphicsTableItem.
Add ProjectDataBase  class, the goal of this class is to store all
information of a project at an instant T to easilly find it. This class
is still in development and not provide all information that she should.
This commit is contained in:
Claveau Joshua
2020-03-28 16:33:00 +01:00
parent fb7cc6fd3e
commit 66abfbe180
13 changed files with 542 additions and 43 deletions

View File

@@ -249,8 +249,10 @@ void GraphicsTablePropertiesEditor::updateUi()
return;
}
m_header_button_group->button(m_table_item->model()->headerData(0, Qt::Horizontal, Qt::TextAlignmentRole).toInt())->setChecked(true);
m_table_button_group->button(m_table_item->model()->data(m_table_item->model()->index(0,0), Qt::TextAlignmentRole).toInt())->setChecked(true);
if (auto button = m_header_button_group->button(m_table_item->model()->headerData(0, Qt::Horizontal, Qt::TextAlignmentRole).toInt()))
button->setChecked(true);
if (auto button = m_table_button_group->button(m_table_item->model()->data(m_table_item->model()->index(0,0), Qt::TextAlignmentRole).toInt()))
button->setChecked(true);
setUpEditConnection();
}