QAbstractTableModel explicitly initialized in copy constructor

warning: base class ‘class QAbstractTableModel’
should be explicitly initialized in the copy constructor [-Wextra]
This commit is contained in:
Simon De Backer
2020-06-08 20:57:52 +02:00
committed by Laurent Trinques
parent 521ed615d9
commit 4a3b7e708a

View File

@@ -43,7 +43,8 @@ NomenclatureModel::NomenclatureModel(QETProject *project, QObject *parent) :
* @brief NomenclatureModel::NomenclatureModel
* @param other_model
*/
NomenclatureModel::NomenclatureModel(const NomenclatureModel &other_model)
NomenclatureModel::NomenclatureModel(const NomenclatureModel &other_model):
QAbstractTableModel(other_model.parent())
{
this->setParent(other_model.parent());
m_project = other_model.m_project;