-#if 0
-// if (draggingHandle1)
- if (state == OSSelected)
- painter->drawEllipse(QPointF(position.x, position.y), 4.0, 4.0);
-
-// if (draggingHandle2)
- if (state == OSSelected)
- painter->drawEllipse(QPointF(endpoint.x, endpoint.y), 4.0, 4.0);
-
- if (Object::fixedLength && (draggingHandle1 || draggingHandle2))
- {
- Vector point1 = (draggingHandle1 ? endpoint : position);
- Vector point2 = (draggingHandle1 ? position : endpoint);
-
- Vector current(point2 - point1);
- Vector v = current.Unit() * length;
- Vector v2 = point1 + v;
- painter->drawLine((int)point1.x, (int)point1.y, (int)v2.x, (int)v2.y);
-
- if (current.Magnitude() > length)
- {
- painter->setPen(QPen(QColor(128, 0, 0), 1.0, Qt::DashLine));
- painter->drawLine((int)v2.x, (int)v2.y, (int)point2.x, (int)point2.y);
- }
- }
- else
- painter->drawLine((int)position.x, (int)position.y, (int)endpoint.x, (int)endpoint.y);
-#endif