mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:27:45 +00:00
LibGUI: Make Splitter inherit from Widget instead of Frame
It wasn't using any of the Frame features, so I'm not sure what the idea here was.
This commit is contained in:
parent
ac78531756
commit
eca6ff353e
2 changed files with 7 additions and 6 deletions
|
@ -54,7 +54,7 @@ void Splitter::paint_event(PaintEvent& event)
|
||||||
|
|
||||||
void Splitter::resize_event(ResizeEvent& event)
|
void Splitter::resize_event(ResizeEvent& event)
|
||||||
{
|
{
|
||||||
Frame::resize_event(event);
|
Widget::resize_event(event);
|
||||||
m_grabbable_rect = {};
|
m_grabbable_rect = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,12 +26,13 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <LibGUI/Frame.h>
|
#include <LibGUI/Widget.h>
|
||||||
|
|
||||||
namespace GUI {
|
namespace GUI {
|
||||||
|
|
||||||
class Splitter : public Frame {
|
class Splitter : public Widget {
|
||||||
C_OBJECT(Splitter)
|
C_OBJECT(Splitter);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual ~Splitter() override;
|
virtual ~Splitter() override;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue