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

Method goToCell

src/frontend/matrix/MatrixView.cpp:582–594  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580}
581
582void MatrixView::goToCell() {
583 bool ok;
584
585 int col = QInputDialog::getInt(nullptr, i18n("Go to Cell"), i18n("Enter column"), 1, 1, m_matrix->columnCount(), 1, &ok);
586 if (!ok)
587 return;
588
589 int row = QInputDialog::getInt(nullptr, i18n("Go to Cell"), i18n("Enter row"), 1, 1, m_matrix->rowCount(), 1, &ok);
590 if (!ok)
591 return;
592
593 goToCell(row - 1, col - 1);
594}
595
596void MatrixView::goToCell(int row, int col) {
597 const auto& index = m_model->index(row, col);

Callers 10

viewMethod · 0.45
viewMethod · 0.45
testSearchSimple00Method · 0.45
testSearchExtended00Method · 0.45
testSearchExtended01Method · 0.45
testSearchExtended02Method · 0.45
testSearchExtended03Method · 0.45
testSearchReplaceTextMethod · 0.45

Calls 4

columnCountMethod · 0.45
rowCountMethod · 0.45
indexMethod · 0.45
setCurrentIndexMethod · 0.45

Tested by 8

testSearchSimple00Method · 0.36
testSearchExtended00Method · 0.36
testSearchExtended01Method · 0.36
testSearchExtended02Method · 0.36
testSearchExtended03Method · 0.36
testSearchReplaceTextMethod · 0.36