diff options
author | Andreas Kling <kling@serenityos.org> | 2020-08-26 00:06:48 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-26 00:51:35 +0200 |
commit | eca6ff353ea6a0a127591a824cdb1c19e83a1bc1 (patch) | |
tree | 3214c41e1b9c8218ee8cdb9822d2a6a50d5fcce4 /Libraries | |
parent | ac7853175655fd430986f8931f3a9409cb58982b (diff) | |
download | serenity-eca6ff353ea6a0a127591a824cdb1c19e83a1bc1.zip |
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.
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibGUI/Splitter.cpp | 2 | ||||
-rw-r--r-- | Libraries/LibGUI/Splitter.h | 11 |
2 files changed, 7 insertions, 6 deletions
diff --git a/Libraries/LibGUI/Splitter.cpp b/Libraries/LibGUI/Splitter.cpp index 4f2c8debfe..c532ce926b 100644 --- a/Libraries/LibGUI/Splitter.cpp +++ b/Libraries/LibGUI/Splitter.cpp @@ -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 = {}; } diff --git a/Libraries/LibGUI/Splitter.h b/Libraries/LibGUI/Splitter.h index 4d048f5b3c..85f937fae7 100644 --- a/Libraries/LibGUI/Splitter.h +++ b/Libraries/LibGUI/Splitter.h @@ -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; @@ -65,7 +66,7 @@ private: class VerticalSplitter final : public Splitter { C_OBJECT(VerticalSplitter) public: - virtual ~VerticalSplitter() override {} + virtual ~VerticalSplitter() override { } private: VerticalSplitter() @@ -77,7 +78,7 @@ private: class HorizontalSplitter final : public Splitter { C_OBJECT(HorizontalSplitter) public: - virtual ~HorizontalSplitter() override {} + virtual ~HorizontalSplitter() override { } private: HorizontalSplitter() |