view in single click if not in selection mode

This commit is contained in:
Rafael 2016-04-03 05:49:18 +02:00
parent 442e70d501
commit 9c4adc8779
2 changed files with 14 additions and 0 deletions

View File

@ -134,6 +134,13 @@ void SavegameWidget::mouseReleaseEvent(QMouseEvent *ev)
QTimer::singleShot(QApplication::doubleClickInterval(), this, SLOT(changeCheckedState()));
}
}
else
{
if (rect().contains(ev->pos()) && ev->button() == Qt::LeftButton)
{
on_cmdView_clicked();
}
}
}
void SavegameWidget::mouseDoubleClickEvent(QMouseEvent *ev)

View File

@ -132,6 +132,13 @@ void SnapmaticWidget::mouseReleaseEvent(QMouseEvent *ev)
QTimer::singleShot(QApplication::doubleClickInterval(), this, SLOT(changeCheckedState()));
}
}
else
{
if (rect().contains(ev->pos()) && ev->button() == Qt::LeftButton)
{
on_cmdView_clicked();
}
}
}
void SnapmaticWidget::mouseDoubleClickEvent(QMouseEvent *ev)