mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +00:00
LibGUI: Add a DontResizeColumns option to Model::UpdateFlag
This allows an application to signal that column sizes do not need to be recalculated for a given model update.
This commit is contained in:
parent
99570cb0c4
commit
59855e49df
2 changed files with 4 additions and 1 deletions
|
@ -352,7 +352,9 @@ void AbstractTableView::model_did_update(unsigned flags)
|
|||
{
|
||||
AbstractView::model_did_update(flags);
|
||||
update_row_sizes();
|
||||
if (!(flags & Model::UpdateFlag::DontResizeColumns))
|
||||
update_column_sizes();
|
||||
|
||||
update_content_size();
|
||||
update();
|
||||
}
|
||||
|
|
|
@ -51,6 +51,7 @@ public:
|
|||
enum UpdateFlag {
|
||||
DontInvalidateIndices = 0,
|
||||
InvalidateAllIndices = 1 << 0,
|
||||
DontResizeColumns = 1 << 1,
|
||||
};
|
||||
|
||||
enum MatchesFlag {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue