1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:47:34 +00:00

Spreadsheet: Call SheetModel::update() instead of invalidate()

SheetModel has its own custom updating method, and that must be called
in order to update the spreadsheet.
This commit is contained in:
sin-ack 2021-08-09 23:26:24 +00:00 committed by Ali Mohammad Pur
parent 0a02496f04
commit 51d559e253
2 changed files with 5 additions and 3 deletions

View file

@ -7,6 +7,7 @@
#pragma once
#include "Spreadsheet.h"
#include "SpreadsheetModel.h"
#include <LibGUI/AbstractTableView.h>
#include <LibGUI/ModelEditingDelegate.h>
#include <LibGUI/TableView.h>
@ -155,6 +156,7 @@ private:
};
NonnullRefPtr<Sheet> m_sheet;
NonnullRefPtr<SheetModel> m_sheet_model;
RefPtr<InfinitelyScrollableTableView> m_table_view;
RefPtr<GUI::Menu> m_cell_range_context_menu;
};