27 #include "../../../../core/translator/Translator.h" 28 #include "../../../../dataaccess/dataset/UniqueKey.h" 29 #include "../../Exception.h" 56 if(role == Qt::DecorationRole)
57 return QVariant(QIcon::fromTheme(
"unique"));
59 if(role == Qt::DisplayRole)
67 QMenu* m =
new QMenu(parent);
69 QAction* aOpenUniqueKey = m->addAction(tr(
"&Open unique-key"));
71 connect(aOpenUniqueKey, SIGNAL(triggered()),
this, SLOT(openUniqueKey()));
78 if(!children().empty())
86 return Qt::NoItemFlags;
93 for(std::size_t i = 0; i < nproperties; ++i)
A class that represents a unique key in a TreeModel.
A class that represents a dataset in a TreeModel.
It describes a unique key (uk) constraint.
const std::vector< te::dt::Property * > & getProperties() const
It returns the properties that form the unique key.
virtual const std::string & getName() const
It returns the constraint name.