| 53 | } |
| 54 | |
| 55 | void 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. |
no test coverage detected