27 #include "../../../../core/translator/Translator.h" 28 #include "../../../../dataaccess/dataset/ForeignKey.h" 29 #include "../../Exception.h" 55 if(role == Qt::DecorationRole)
56 return QVariant(QIcon::fromTheme(
"foreignkey"));
58 if(role == Qt::DisplayRole)
66 QMenu* m =
new QMenu(parent);
68 QAction* aOpenForeignKey = m->addAction(tr(
"&Open foreign-key"));
70 connect(aOpenForeignKey, SIGNAL(triggered()),
this, SLOT(openForeignKey()));
82 return Qt::NoItemFlags;
A class that represents a foreign key in a TreeModel.
It models a foreign key constraint for a DataSetType.
virtual const std::string & getName() const
It returns the constraint name.