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

Method setMatrices

src/frontend/dockwidgets/MatrixDock.cpp:54–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void MatrixDock::setMatrices(QList<Matrix*> list) {
55 CONDITIONAL_LOCK_RETURN;
56 m_matrixList = list;
57 m_matrix = list.first();
58 setAspects(std::move(list));
59
60 // show the properties of the first Matrix in the list, if there are >1 matrixs
61 this->load();
62
63 // undo functions
64 connect(m_matrix, &Matrix::rowCountChanged, this, &MatrixDock::matrixRowCountChanged);
65 connect(m_matrix, &Matrix::columnCountChanged, this, &MatrixDock::matrixColumnCountChanged);
66
67 connect(m_matrix, &Matrix::xStartChanged, this, &MatrixDock::matrixXStartChanged);
68 connect(m_matrix, &Matrix::xEndChanged, this, &MatrixDock::matrixXEndChanged);
69 connect(m_matrix, &Matrix::yStartChanged, this, &MatrixDock::matrixYStartChanged);
70 connect(m_matrix, &Matrix::yEndChanged, this, &MatrixDock::matrixYEndChanged);
71
72 connect(m_matrix, &Matrix::numericFormatChanged, this, &MatrixDock::matrixNumericFormatChanged);
73 connect(m_matrix, &Matrix::precisionChanged, this, &MatrixDock::matrixPrecisionChanged);
74 connect(m_matrix, &Matrix::headerFormatChanged, this, &MatrixDock::matrixHeaderFormatChanged);
75}
76
77void MatrixDock::retranslateUi() {
78 CONDITIONAL_LOCK_RETURN;

Callers 1

Calls 1

loadMethod · 0.95

Tested by

no test coverage detected