summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/Splitter.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-08-26 00:06:48 +0200
committerAndreas Kling <kling@serenityos.org>2020-08-26 00:51:35 +0200
commiteca6ff353ea6a0a127591a824cdb1c19e83a1bc1 (patch)
tree3214c41e1b9c8218ee8cdb9822d2a6a50d5fcce4 /Libraries/LibGUI/Splitter.h
parentac7853175655fd430986f8931f3a9409cb58982b (diff)
downloadserenity-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/LibGUI/Splitter.h')
-rw-r--r--Libraries/LibGUI/Splitter.h11
1 files changed, 6 insertions, 5 deletions
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()