1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:17:35 +00:00

Browser: Share one BookmarksBarWidget between all Tabs

This commit is contained in:
Andreas Kling 2020-04-25 17:20:23 +02:00
parent dc6b61dbcc
commit bd45b2b8d3
7 changed files with 93 additions and 50 deletions

View file

@ -29,9 +29,13 @@
#include <LibGUI/Forward.h>
#include <LibGUI/Widget.h>
namespace Browser {
class BookmarksBarWidget final : public GUI::Widget {
C_OBJECT(BookmarksBarWidget)
public:
static BookmarksBarWidget& the();
virtual ~BookmarksBarWidget() override;
void set_model(RefPtr<GUI::Model>);
@ -62,3 +66,5 @@ private:
int m_last_visible_index { -1 };
};
}