mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 15:49:11 +00:00
Help: Make section books open and close when toggled
Much more satisfying!
This commit is contained in:
parent
cbf3c2caeb
commit
d86dbfe9e8
Notes:
sideshowbarker
2024-07-19 05:02:42 +09:00
Author: https://github.com/thankyouverycool
Commit: d86dbfe9e8
Pull-request: https://github.com/SerenityOS/serenity/pull/2726
6 changed files with 27 additions and 1 deletions
|
@ -45,6 +45,7 @@ public:
|
|||
String page_path(const GUI::ModelIndex&) const;
|
||||
String page_and_section(const GUI::ModelIndex&) const;
|
||||
|
||||
void update_section_node_on_toggle(const GUI::ModelIndex&, const bool);
|
||||
virtual int row_count(const GUI::ModelIndex& = GUI::ModelIndex()) const override;
|
||||
virtual int column_count(const GUI::ModelIndex& = GUI::ModelIndex()) const override;
|
||||
virtual GUI::Variant data(const GUI::ModelIndex&, Role = Role::Display) const override;
|
||||
|
@ -55,6 +56,7 @@ public:
|
|||
private:
|
||||
ManualModel();
|
||||
|
||||
GUI::Icon m_section_open_icon;
|
||||
GUI::Icon m_section_icon;
|
||||
GUI::Icon m_page_icon;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue