view in single click if not in selection mode
This commit is contained in:
parent
442e70d501
commit
9c4adc8779
2 changed files with 14 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue