- r = QRectF(item.x(), item.y(), item.w(), item.h());
- m_points << r.center();
- pos = item.frame() + 1;
+ r = QRectF(item.x(), item.y(), item.w(), item.h());
+ m_points << r.center();
+ pos = item.frame() + 1;
- QRectF r(0, 0, 20, 20);
- r.moveCenter(m_points.at(0));
- shape.addRect(r);
-
- p.moveTo(m_points.at(0));
- for (int i = 1; i < m_points.count(); ++i) {
- p.lineTo(m_points.at(i));
- r.moveCenter(m_points.at(i));
- shape.addRect(r);
- }
+ QRectF r(0, 0, 20, 20);
+ r.moveCenter(m_points.at(0));
+ shape.addRect(r);
+
+ p.moveTo(m_points.at(0));
+ for (int i = 1; i < m_points.count(); ++i) {
+ p.lineTo(m_points.at(i));
+ r.moveCenter(m_points.at(i));
+ shape.addRect(r);
+ }
void OnMonitorPathItem::hoverLeaveEvent(QGraphicsSceneHoverEvent* /*event*/)
{
if (m_activePoint != -1) {
void OnMonitorPathItem::hoverLeaveEvent(QGraphicsSceneHoverEvent* /*event*/)
{
if (m_activePoint != -1) {
}
QRectF handle(0, 0, w, h);
for (int i = 0; i < m_points.count(); ++i) {
}
QRectF handle(0, 0, w, h);
for (int i = 0; i < m_points.count(); ++i) {