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

Method switchView

src/frontend/matrix/MatrixView.cpp:872–881  ·  view source on GitHub ↗

############################# matrix related slots ###########################

Source from the content-addressed store, hash-verified

870
871// ############################# matrix related slots ###########################
872void MatrixView::switchView(QAction* action) {
873 if (action == action_data_view)
874 m_stackedWidget->setCurrentIndex(0);
875 else {
876 if (m_imageIsDirty)
877 this->updateImage();
878
879 m_stackedWidget->setCurrentIndex(1);
880 }
881}
882
883void MatrixView::matrixDataChanged() {
884 m_imageIsDirty = true;

Callers

nothing calls this directly

Calls 2

updateImageMethod · 0.95
setCurrentIndexMethod · 0.45

Tested by

no test coverage detected