Spreadsheet: Expose currentIndex to Python
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user