1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:57: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:
Andreas Kling 2020-08-26 00:06:48 +02:00
parent ac78531756
commit eca6ff353e
2 changed files with 7 additions and 6 deletions

View file

@ -54,7 +54,7 @@ void Splitter::paint_event(PaintEvent& event)
void Splitter::resize_event(ResizeEvent& event)
{
Frame::resize_event(event);
Widget::resize_event(event);
m_grabbable_rect = {};
}

View file

@ -26,12 +26,13 @@
#pragma once
#include <LibGUI/Frame.h>
#include <LibGUI/Widget.h>
namespace GUI {
class Splitter : public Frame {
C_OBJECT(Splitter)
class Splitter : public Widget {
C_OBJECT(Splitter);
public:
virtual ~Splitter() override;