Spreadsheet: Expose currentIndex to Python

This commit is contained in:
Chris Hennes
2021-11-12 22:53:42 -06:00
parent e27270e615
commit 48f4277477
5 changed files with 42 additions and 4 deletions

View File

@@ -439,6 +439,11 @@ QModelIndex SheetView::currentIndex() const
return ui->cells->currentIndex();
}
void SpreadsheetGui::SheetView::setCurrentIndex(App::CellAddress cell) const
{
ui->cells->setCurrentIndex(model->index(cell.row(), cell.col()));
}
PyObject *SheetView::getPyObject()
{
if (!pythonObject)