Merged in mmastriani/fractorium/Michel-Mastriani/curvesgraphicsviewcpp-edited-online-with-1577938448647 (pull request #30)

CurvesGraphicsView.cpp edited online with Bitbucket

Approved-by: Matt Feemster <matt.feemster@gmail.com>
This commit is contained in:
Michel Mastriani 2020-01-02 06:34:40 +00:00 committed by Matt Feemster
commit e657eac9fe

View File

@ -218,7 +218,7 @@ void CurvesGraphicsView::paintEvent(QPaintEvent* e)
void CurvesGraphicsView::mousePressEvent(QMouseEvent* e)
{
QGraphicsView::mousePressEvent(e);
auto thresh = devicePixelRatioF() * 2;
auto thresh = devicePixelRatioF() * 10;
auto findpoint = [&](int x, int y) -> int
{
for (int i = 0; i < m_Points[m_Index].size(); i++)