summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/AutocompleteProvider.h
diff options
context:
space:
mode:
authorthislooksfun <tlf@thislooks.fun>2021-10-28 00:46:45 -0500
committerAndreas Kling <kling@serenityos.org>2021-11-02 17:53:22 +0100
commit713b6badb0c8bc2a3457c026dc33d716d308369b (patch)
tree79b7a3cc83ae3206806768c5e12968f27ec67cac /Userland/Libraries/LibGUI/AutocompleteProvider.h
parent1bf428d296cf534886be6cb54ed025e67a6bd5b4 (diff)
downloadserenity-713b6badb0c8bc2a3457c026dc33d716d308369b.zip
LibGUI: Add AutocompleteProvider::has_suggestions()
Diffstat (limited to 'Userland/Libraries/LibGUI/AutocompleteProvider.h')
-rw-r--r--Userland/Libraries/LibGUI/AutocompleteProvider.h1
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();