1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:48:14 +00:00

Spreadsheet: Implement infinite-scroll for rows

Every time the scrollbar reaches the end, we append 100 more rows
(seamlessly!).
As a result of defaulting to 100 rows, we can also save with the
smallest number of rows required.
This partially deals with #4170.
This commit is contained in:
AnotherTest 2020-11-26 10:46:22 +03:30 committed by Andreas Kling
parent 71de8b7480
commit f6ae4edbd2
5 changed files with 69 additions and 11 deletions

View file

@ -170,6 +170,7 @@ void SheetModel::set_data(const GUI::ModelIndex& index, const GUI::Variant& valu
void SheetModel::update()
{
m_sheet->update();
did_update(UpdateFlag::DontInvalidateIndexes);
}
}