[TD]Cosmetic function overhaul (#14216)
* [TD]Cosmetic geometry and tools update - all cosmetics to store geometry in same form - all cosmetics to survive scaling and rotation - extension functions to survive scaling and rotation * [TD]overhaul leader point storage and editing - add py routine makeLeader(points) * [TD]add leader conversion utility * [TD]Set Leader RotateWithView default to true * [TD]fix intersection vertex position * [TD]add CosmeticEdge::makeLineFromCanonicalPoints * [TD]fix 2 Extension tools - positioning in DrawCosmeticCircle - mishandling of points in execLineParallelPerpendicular * [TD]Remove duplicate constexpr * [TD]fix 2x Cosmetic arc tools * [TD]refactor LineFormat out of Cosmetic * [TD]move cosmetic appearance settings to LineFormat * [TD]remove 2 unused methods * [TD]apply format to blue line & circle tools * [TD]fix ballon arrowhead does not rotate with view * [TD]fix CosmeticCircle3Points * [TD]allow multiple cosmetic object deletions * [TD]fix extend/shorten centerline
This commit is contained in:
@@ -107,7 +107,7 @@ void QGTracker::mousePressEvent(QGraphicsSceneMouseEvent *event)
|
||||
{
|
||||
QPointF myScenePos = event->scenePos();
|
||||
if (!m_sleep) {
|
||||
double someLimit = Rez::guiX(10.0);
|
||||
double someLimit = Rez::guiX(1.0);
|
||||
QPointF manhat = myScenePos - m_lastClick;
|
||||
// Base::Console().Message("QGT::mousePressEvent - scenePos: (%.3f, %.3f) lastClick:(%.3f, %.3f)\n",
|
||||
// myScenePos.x(), myScenePos.y(), m_lastClick.x(), m_lastClick.y());
|
||||
@@ -170,6 +170,8 @@ void QGTracker::keyPressEvent(QKeyEvent * event)
|
||||
QGIPrimPath::keyPressEvent(event);
|
||||
}
|
||||
|
||||
|
||||
// ?? why does this method exist? and why isn't it called changeCursor?
|
||||
void QGTracker::sleep(bool b)
|
||||
{
|
||||
m_sleep = b;
|
||||
|
||||
Reference in New Issue
Block a user