From eca6ff353ea6a0a127591a824cdb1c19e83a1bc1 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 26 Aug 2020 00:06:48 +0200 Subject: 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. --- Libraries/LibGUI/Splitter.cpp | 2 +- Libraries/LibGUI/Splitter.h | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'Libraries') 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 +#include 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() -- cgit v1.2.3