Skip to content
Snippets Groups Projects
Commit de43ca22 authored by l.dressen's avatar l.dressen
Browse files

Merge branch '297-griditem-can-be-moved-without-being-shown' into 'master'

Resolve "GridItem can be moved without being shown"

Closes #297

See merge request !199
parents 64906b25 eeba6d4c
No related branches found
No related tags found
1 merge request!199Resolve "GridItem can be moved without being shown"
Pipeline #66348 passed
......@@ -65,7 +65,7 @@ QRectF GridItem::boundingRect() const
// event, of moving mouse while pressing a mouse button
void GridItem::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
{
if(!mControlWidget->getCalibGridFix())
if(!mControlWidget->getCalibGridFix() && mControlWidget->getCalibGridShow())
{
setCursor(Qt::SizeBDiagCursor);
QPointF diff = event->scenePos() -
......@@ -118,7 +118,7 @@ void GridItem::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
void GridItem::mousePressEvent(QGraphicsSceneMouseEvent *event)
{
if(!mControlWidget->getCalibGridFix())
if(!mControlWidget->getCalibGridFix() && mControlWidget->getCalibGridShow())
{
if(event->button() == Qt::LeftButton)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment