mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:47:34 +00:00
LibGUI: Implement calculated_min_size() for ListView
This commit is contained in:
parent
d495405e53
commit
f0a5ce6d11
2 changed files with 15 additions and 1 deletions
|
@ -56,12 +56,15 @@ private:
|
|||
virtual void mousemove_event(MouseEvent&) override;
|
||||
virtual void layout_relevant_change_occured() override;
|
||||
|
||||
virtual Optional<UISize> calculated_min_size() const override;
|
||||
|
||||
Gfx::IntRect content_rect(int row) const;
|
||||
void update_content_size();
|
||||
|
||||
int m_horizontal_padding { 2 };
|
||||
int m_vertical_padding { 2 };
|
||||
int m_model_column { 0 };
|
||||
int m_max_item_width { 0 };
|
||||
bool m_alternating_row_colors { true };
|
||||
bool m_hover_highlighting { false };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue