Changeset View
Changeset View
Standalone View
Standalone View
src/part/canvasedge.cpp
Show First 20 Lines • Show All 314 Lines • ▼ Show 20 Line(s) | 303 | // qCDebug(KGRAPHVIEWERLIB_LOG) << edge()->fromNode()->id() << "->" << edge()->toNode()->id() << "drawPolygon" << edge()->color(0) << polygon; | |||
---|---|---|---|---|---|
315 | } | 315 | } | ||
316 | else | 316 | else | ||
317 | { | 317 | { | ||
318 | pen.setWidth((int)(1 * widthScaleFactor)); | 318 | pen.setWidth((int)(1 * widthScaleFactor)); | ||
319 | pen.setStyle(Dot2QtConsts::componentData().qtPenStyle(edge()->style())); | 319 | pen.setStyle(Dot2QtConsts::componentData().qtPenStyle(edge()->style())); | ||
320 | } | 320 | } | ||
321 | p->setPen(pen); | 321 | p->setPen(pen); | ||
322 | // qCDebug(KGRAPHVIEWERLIB_LOG) << edge()->fromNode()->id() << "->" << edge()->toNode()->id() << "drawPolyline" << edge()->color(0) << polygon; | 322 | // qCDebug(KGRAPHVIEWERLIB_LOG) << edge()->fromNode()->id() << "->" << edge()->toNode()->id() << "drawPolyline" << edge()->color(0) << polygon; | ||
323 | polygon << polygon[0]; | ||||
323 | p->drawPolyline(polygon); | 324 | p->drawPolyline(polygon); | ||
324 | p->setPen(oldPen); | 325 | p->setPen(oldPen); | ||
325 | p->setBrush(oldBrush); | 326 | p->setBrush(oldBrush); | ||
326 | } | 327 | } | ||
327 | else if (( dro.renderop == "e" ) || (dro.renderop == "E" )) | 328 | else if (( dro.renderop == "e" ) || (dro.renderop == "E" )) | ||
328 | { | 329 | { | ||
329 | qreal w = m_scaleX * dro.integers[2] * 2; | 330 | qreal w = m_scaleX * dro.integers[2] * 2; | ||
330 | qreal h = m_scaleY * dro.integers[3] * 2; | 331 | qreal h = m_scaleY * dro.integers[3] * 2; | ||
▲ Show 20 Lines • Show All 226 Lines • Show Last 20 Lines |