MCPcopy Create free account
hub / github.com/KDAB/KDChart / checkExistingAxes

Function checkExistingAxes

src/KDChart/KDChartChart.cpp:378–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376};
377
378void checkExistingAxes(LayoutGraphNode *node)
379{
380 if (node && node->diagramPlane && node->diagramPlane->diagram()) {
381 auto *diag = qobject_cast<AbstractCartesianDiagram *>(node->diagramPlane->diagram());
382 if (diag) {
383 Q_FOREACH (const CartesianAxis *axis, diag->axes()) {
384 switch (axis->position()) {
385 case (CartesianAxis::Top):
386 node->topAxesLayout = true;
387 break;
388 case (CartesianAxis::Bottom):
389 node->bottomAxesLayout = true;
390 break;
391 case (CartesianAxis::Left):
392 node->leftAxesLayout = true;
393 break;
394 case (CartesianAxis::Right):
395 node->rightAxesLayout = true;
396 break;
397 }
398 }
399 }
400 }
401}
402
403static void mergeNodeAxisInformation(LayoutGraphNode *lhs, LayoutGraphNode *rhs)
404{

Callers 1

Q_FOREACHFunction · 0.85

Calls 1

diagramMethod · 0.45

Tested by

no test coverage detected