diff options
author | thislooksfun <tlf@thislooks.fun> | 2021-10-28 00:46:45 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-02 17:53:22 +0100 |
commit | 713b6badb0c8bc2a3457c026dc33d716d308369b (patch) | |
tree | 79b7a3cc83ae3206806768c5e12968f27ec67cac /Userland/Libraries/LibGUI/AutocompleteProvider.h | |
parent | 1bf428d296cf534886be6cb54ed025e67a6bd5b4 (diff) | |
download | serenity-713b6badb0c8bc2a3457c026dc33d716d308369b.zip |
LibGUI: Add AutocompleteProvider::has_suggestions()
Diffstat (limited to 'Userland/Libraries/LibGUI/AutocompleteProvider.h')
-rw-r--r-- | Userland/Libraries/LibGUI/AutocompleteProvider.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/AutocompleteProvider.h b/Userland/Libraries/LibGUI/AutocompleteProvider.h index d395dfa773..cec55fae32 100644 --- a/Userland/Libraries/LibGUI/AutocompleteProvider.h +++ b/Userland/Libraries/LibGUI/AutocompleteProvider.h @@ -86,6 +86,7 @@ public: void show(Gfx::IntPoint suggestion_box_location); void close(); + bool has_suggestions() { return m_suggestion_view->model()->row_count() > 0; } void next_suggestion(); void previous_suggestion(); void apply_suggestion(); |