27 #include "../../../../common/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)
60 return QVariant(m_property->getName().c_str());
67 QMenu* m =
new QMenu(parent);
69 QAction* aOpenProperty = m->addAction(tr(
"&Open property"));
71 connect(aOpenProperty, SIGNAL(triggered()),
this, SLOT(openProperty()));
83 return Qt::NoItemFlags;
It models a property definition.