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:
parent
dc6b61dbcc
commit
bd45b2b8d3
7 changed files with 93 additions and 50 deletions
|
@ -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 };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue