mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:08:12 +00:00
Help: Make section books open and close when toggled
Much more satisfying!
This commit is contained in:
parent
cbf3c2caeb
commit
d86dbfe9e8
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