27 #include "../../../../common/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)
59 return QVariant(m_fk->getName().c_str());
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.