TechDraw: transfert mousePressEvent from QGIPrimPath to parent

This commit is contained in:
Franck Jullien
2019-03-11 18:51:12 +01:00
committed by wmayer
parent 99a205bd40
commit 0305555d52
3 changed files with 13 additions and 1 deletions

View File

@@ -227,3 +227,13 @@ Base::Reference<ParameterGrp> QGIPrimPath::getParmGroup()
.GetGroup("BaseApp")->GetGroup("Preferences")->GetGroup("Mod/TechDraw/Colors");
return hGrp;
}
void QGIPrimPath::mousePressEvent(QGraphicsSceneMouseEvent * event)
{
QGIView *parent;
QGraphicsItem* qparent = parentItem();
if (qparent != nullptr) {
parent = dynamic_cast<QGIView *> (qparent);
parent->mousePressEvent(event);
}
}