mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-02-16 23:19:59 +01:00
Add view 'element_nomenclature_view' to projectDataBase
Add a view for the nomenclature to reduce the size of the query and make it more understandable
This commit is contained in:
@@ -197,7 +197,7 @@ QETProject *NomenclatureModel::project() const {
|
||||
*/
|
||||
void NomenclatureModel::autoHeaders()
|
||||
{
|
||||
auto headers = projectDataBase::headersFromElementsInfoQuery(m_query);
|
||||
auto headers = projectDataBase::headersFromElementNomenclatureViewQuery(m_query);
|
||||
for (auto i=0 ; i<headers.size() ; ++i) {
|
||||
this->setHeaderData(i, Qt::Horizontal, headers.at(i));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user