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

Method view

src/backend/matrix/Matrix.cpp:114–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114QWidget* Matrix::view() const {
115#ifndef SDK
116 if (!m_partView) {
117 m_view = new MatrixView(const_cast<Matrix*>(this));
118 m_partView = m_view;
119 m_model = m_view->model();
120 connect(this, &Matrix::viewAboutToBeDeleted, [this]() {
121 m_view = nullptr;
122 });
123
124 // navigate to the first cell and set the focus so the user can start directly entering new data
125 QTimer::singleShot(0, this, [=]() {
126 m_view->goToCell(0, 0);
127 m_view->setFocus();
128 });
129 }
130 return m_partView;
131#else
132 return nullptr;
133#endif
134}
135
136bool Matrix::exportView() const {
137#ifndef SDK

Callers

nothing calls this directly

Calls 3

modelMethod · 0.45
goToCellMethod · 0.45
setFocusMethod · 0.45

Tested by

no test coverage detected