Nomenclature model don't save header data "display role"

The model doesn't save anymore the header data with role
Qt::displayRole.
The header display role is now generated in the fly, by concequent the
header displayed texts are always in the current local
This commit is contained in:
Claveau Joshua
2020-05-29 20:54:50 +02:00
parent 70f0541e06
commit 27472bdd8b
2 changed files with 22 additions and 15 deletions

View File

@@ -61,7 +61,7 @@ class NomenclatureModel : public QAbstractTableModel
QPointer<QETProject> m_project;
QString m_query;
QVector<QStringList> m_record;
QHash<int, QHash<int, QVariant>> m_header_data;
QHash<int, QHash<int, QVariant>> m_header_data; //First int = section, second int = Qt::role, QVariant = value
QHash<int, QVariant> m_index_0_0_data;
};