D17731: Select curve only, when clicked near curve

Martin Marmsoler noreply at phabricator.kde.org
Sat Dec 22 10:53:52 GMT 2018


Murmele created this revision.
Murmele added a reviewer: asemke.
Herald added a project: KDE Edu.
Herald added a subscriber: kde-edu.
Murmele requested review of this revision.

REVISION SUMMARY
  The current behavior is, that when you click into a cartesianPlot with a curve, it is not possible to call the contextmenu of the cartesianPlot or select a curve, which is behind the most in front curve, because the clicks and mouse hovers gets the most in front object and for a curve the complete boundingrect will be used. With this patch it will be looked, if the mousecursor is near to the curve points and only a action on the curve will occur, when the distance to the curve is lower than a factor.
  
  Limitations: At the moment only the distance to the curve points will be calculated. It will not respect the interpolation line. Problem, at very high gradients, or zoomed in where there is a big scene distance between two points.
  
  video:
  F6499823: SelectCurve.mp4 <https://phabricator.kde.org/F6499823>

REPOSITORY
  R262 LabPlot

REVISION DETAIL
  https://phabricator.kde.org/D17731

AFFECTED FILES
  src/backend/core/AbstractColumn.cpp
  src/backend/core/AbstractColumn.h
  src/backend/core/column/Column.cpp
  src/backend/core/column/Column.h
  src/backend/core/column/ColumnPrivate.cpp
  src/backend/core/column/ColumnPrivate.h

To: Murmele, asemke
Cc: kde-edu, Murmele, narvaez, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-edu/attachments/20181222/17c39894/attachment-0001.html>


More information about the kde-edu mailing list