summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/Breadcrumbbar.h
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2023-02-06 17:29:07 +0000
committerLinus Groh <mail@linusgroh.de>2023-02-19 01:09:09 +0100
commitf0c2dcdbac1be71bf997c19e8a771ff3a2459673 (patch)
treeca9f71dd0fb9e30f4bddef634df2b3d3ab524349 /Userland/Libraries/LibGUI/Breadcrumbbar.h
parentf5cf41eb5dabba687100271aeb559eda45aaadb5 (diff)
downloadserenity-f0c2dcdbac1be71bf997c19e8a771ff3a2459673.zip
LibGUI: Add PathBreadcrumbbar
This Widget wraps both a Breadcrumbbar and a TextBox for editing the path manually, based heavily on the existing code in FileManager. Breadcrumbbar itself requires outside code to micro-manage what it does. This class provides a simpler interface for it: Users don't have to worry about segments, they just give/receive a string for the current path.
Diffstat (limited to 'Userland/Libraries/LibGUI/Breadcrumbbar.h')
-rw-r--r--Userland/Libraries/LibGUI/Breadcrumbbar.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGUI/Breadcrumbbar.h b/Userland/Libraries/LibGUI/Breadcrumbbar.h
index 96e11bd84e..2122ec1a7b 100644
--- a/Userland/Libraries/LibGUI/Breadcrumbbar.h
+++ b/Userland/Libraries/LibGUI/Breadcrumbbar.h
@@ -1,6 +1,7 @@
/*
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
* Copyright (c) 2022, the SerenityOS developers.
+ * Copyright (c) 2023, Sam Atkins <atkinssj@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@@ -40,10 +41,9 @@ public:
protected:
virtual void did_change_font() override;
-
-private:
Breadcrumbbar();
+private:
virtual void resize_event(ResizeEvent&) override;
struct Segment {