27 #include "../../../../core/translator/Translator.h" 28 #include "../../../../datatype/Property.h" 29 #include "../../Exception.h" 56 if(role == Qt::DecorationRole)
57 return QVariant(QIcon::fromTheme(
"property"));
59 if (role == Qt::DisplayRole)
73 QMenu* m =
new QMenu(parent);
75 QAction* aOpenProperty = m->addAction(tr(
"&Open property"));
77 connect(aOpenProperty, SIGNAL(triggered()),
this, SLOT(openProperty()));
89 return Qt::NoItemFlags;
It models a property definition.
A class that represents a dataset in a TreeModel.
int getType() const
It returns the property data type.
A class used to group a set of properties from a dataset in a TreeModel.
const std::string & getName() const
It returns the property name.