Remove double clicking. It somehow segfaults.....
This commit is contained in:
parent
e43aa8d201
commit
1fa9c3e8d5
@ -110,11 +110,6 @@ void CropScene::mouseReleaseEvent(QGraphicsSceneMouseEvent *e)
|
|||||||
prevButtons = Qt::NoButton;
|
prevButtons = Qt::NoButton;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CropScene::keyReleaseEvent(QKeyEvent *event)
|
|
||||||
{
|
|
||||||
if (event->key() == Qt::Key_Return || event->key() == Qt::Key_Enter) done();
|
|
||||||
}
|
|
||||||
|
|
||||||
void CropScene::addDrawingAction(QMenu &menu, DrawItem *item)
|
void CropScene::addDrawingAction(QMenu &menu, DrawItem *item)
|
||||||
{
|
{
|
||||||
QAction *action = new QAction;
|
QAction *action = new QAction;
|
||||||
@ -141,9 +136,9 @@ void CropScene::contextMenuEvent(QGraphicsSceneContextMenuEvent *e)
|
|||||||
e->accept();
|
e->accept();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CropScene::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *)
|
void CropScene::keyReleaseEvent(QKeyEvent *event)
|
||||||
{
|
{
|
||||||
done();
|
if (event->key() == Qt::Key_Return || event->key() == Qt::Key_Enter) done(); // Segfault
|
||||||
}
|
}
|
||||||
|
|
||||||
void CropScene::done()
|
void CropScene::done()
|
||||||
|
@ -30,7 +30,6 @@ class CropScene : public QGraphicsScene
|
|||||||
protected:
|
protected:
|
||||||
void mouseMoveEvent(QGraphicsSceneMouseEvent *e) override;
|
void mouseMoveEvent(QGraphicsSceneMouseEvent *e) override;
|
||||||
void mouseReleaseEvent(QGraphicsSceneMouseEvent *e) override;
|
void mouseReleaseEvent(QGraphicsSceneMouseEvent *e) override;
|
||||||
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *e) override;
|
|
||||||
void contextMenuEvent(QGraphicsSceneContextMenuEvent *e) override;
|
void contextMenuEvent(QGraphicsSceneContextMenuEvent *e) override;
|
||||||
|
|
||||||
void keyReleaseEvent(QKeyEvent *e) override;
|
void keyReleaseEvent(QKeyEvent *e) override;
|
||||||
|
Loading…
Reference in New Issue
Block a user