#include "ct_outstditemattributemodel.h" #include template CT_OutStdItemAttributeModel::CT_OutStdItemAttributeModel(const ICategoryForModel* category, const QString& displayableName, const QString& shortDescription, const QString& detailledDescription, ItemAttribute* prototype) : SuperClass(displayableName) { if(prototype == nullptr) { prototype = new ItemAttribute(); prototype->setCategory(static_cast(category)); } Q_ASSERT(prototype->category() == category); if (prototype->category() != category) {qDebug() << "CT_OutStdItemAttributeModel::CT_OutStdItemAttributeModel" << ", " << "prototype->category() != category"; return;} setPrototype(prototype); setShortDescription(shortDescription); setDetailledDescription(detailledDescription); } template CT_OutStdItemAttributeModel::CT_OutStdItemAttributeModel(const QString& categoryUniqueName, const QString& displayableName, const QString& shortDescription, const QString& detailledDescription, ItemAttribute* prototype) : CT_OutStdItemAttributeModel(CT_CategoryManager::CM()->findByUniqueName(categoryUniqueName), displayableName, shortDescription, detailledDescription, prototype) { } template CT_OutAbstractModel* CT_OutStdItemAttributeModel::copy() const { return new CT_OutStdItemAttributeModel(*this); }