MCPcopy Create free account
hub / github.com/KDE/labplot / setReferenceLines

Method setReferenceLines

src/frontend/dockwidgets/ReferenceLineDock.cpp:55–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void ReferenceLineDock::setReferenceLines(QList<ReferenceLine*> list) {
56 CONDITIONAL_LOCK_RETURN;
57 m_linesList = list;
58 m_line = list.first();
59 setAspects(list);
60 Q_ASSERT(m_line);
61
62 // show the properties of the first reference line
63 this->load();
64
65 QList<Line*> lines;
66 for (auto* line : m_linesList)
67 lines << line->line();
68 lineWidget->setLines(lines);
69
70 updatePlotRangeList();
71
72 // SIGNALs/SLOTs
73 connect(m_line, &ReferenceLine::lockChanged, this, &ReferenceLineDock::lineLockChanged);
74 connect(m_line, &ReferenceLine::orientationChanged, this, &ReferenceLineDock::lineOrientationChanged);
75 connect(m_line, &ReferenceLine::positionLogicalChanged, this, &ReferenceLineDock::linePositionLogicalChanged);
76}
77
78/*
79 * updates the locale in the widgets. called when the application settings are changed.

Callers 1

Calls 3

loadMethod · 0.95
setLinesMethod · 0.80
lineMethod · 0.45

Tested by

no test coverage detected