fix mouse clicks not passing into drawer

This commit is contained in:
ArsenArsen 2018-02-25 11:52:43 +01:00
parent fddf59f5d7
commit ef543dbdad
No known key found for this signature in database
GPG Key ID: 683D2F43B0CA4BD2

View File

@ -267,6 +267,7 @@ void CropScene::mouseReleaseEvent(QGraphicsSceneMouseEvent *e) {
prevButtons = Qt::NoButton;
if (e->modifiers() & Qt::ControlModifier) e->accept();
QGraphicsScene::mouseReleaseEvent(e);
}
void CropScene::mousePressEvent(QGraphicsSceneMouseEvent *e) {
@ -276,6 +277,7 @@ void CropScene::mousePressEvent(QGraphicsSceneMouseEvent *e) {
}
if (e->modifiers() & Qt::ControlModifier) e->accept();
QGraphicsScene::mousePressEvent(e);
}
void CropScene::addDrawingAction(QMenuBar *menu, QString name, QString icon, std::function<DrawItem *()> item) {