mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 02:26:10 +00:00
LibGfx+Userland: Remove dependency on GUI::TabWidget from StylePainter
Move TabPosition into its own file, and using it into the global namespace the same way we do for Gfx::Orientation. This unbreaks the gn build, and out of tree builds.
This commit is contained in:
parent
702dd0ca55
commit
d8ab9ed87c
Notes:
sideshowbarker
2024-07-17 11:30:54 +09:00
Author: https://github.com/ADKaster
Commit: d8ab9ed87c
Pull-request: https://github.com/SerenityOS/serenity/pull/21624
11 changed files with 38 additions and 24 deletions
|
@ -9,19 +9,13 @@
|
|||
|
||||
#include <LibGUI/Margins.h>
|
||||
#include <LibGUI/Widget.h>
|
||||
#include <LibGfx/TabPosition.h>
|
||||
|
||||
namespace GUI {
|
||||
|
||||
class TabWidget : public Widget {
|
||||
C_OBJECT(TabWidget)
|
||||
public:
|
||||
enum TabPosition {
|
||||
Top,
|
||||
Bottom,
|
||||
Left,
|
||||
Right,
|
||||
};
|
||||
|
||||
virtual ~TabWidget() override = default;
|
||||
|
||||
TabPosition tab_position() const { return m_tab_position; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue