diff options
author | thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> | 2020-07-07 07:19:30 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-07 13:38:35 +0200 |
commit | d86dbfe9e8c434d05ccabffeba51dbc1eabc900f (patch) | |
tree | a554417fc35923b8f94338c2496f7284f325e805 /Applications/Help/ManualModel.h | |
parent | cbf3c2caeb9ea3b3f4d82e84ea38a1a43ad7171f (diff) | |
download | serenity-d86dbfe9e8c434d05ccabffeba51dbc1eabc900f.zip |
Help: Make section books open and close when toggled
Much more satisfying!
Diffstat (limited to 'Applications/Help/ManualModel.h')
-rw-r--r-- | Applications/Help/ManualModel.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Applications/Help/ManualModel.h b/Applications/Help/ManualModel.h index aeac63037f..f1d9ddf0eb 100644 --- a/Applications/Help/ManualModel.h +++ b/Applications/Help/ManualModel.h @@ -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; }; |