diff --git a/src/widgets/split.cpp b/src/widgets/split.cpp index e8f495fc..d4408191 100644 --- a/src/widgets/split.cpp +++ b/src/widgets/split.cpp @@ -38,6 +38,12 @@ using namespace chatterino::messages; namespace chatterino { namespace widgets { +Split::Split(SplitContainer *parent) + : Split((QWidget *)parent) +{ + this->container = parent; +} + Split::Split(QWidget *parent) : BaseWidget(parent) , container(nullptr) diff --git a/src/widgets/split.hpp b/src/widgets/split.hpp index fb3244d3..7fef6acf 100644 --- a/src/widgets/split.hpp +++ b/src/widgets/split.hpp @@ -22,10 +22,6 @@ namespace widgets { class SplitContainer; -class xD -{ -}; - // Each ChatWidget consists of three sub-elements that handle their own part of the chat widget: // ChatWidgetHeader // - Responsible for rendering which channel the ChatWidget is in, and the menu in the top-left of @@ -43,7 +39,10 @@ class Split : public BaseWidget Q_OBJECT public: + explicit Split(SplitContainer *parent); + explicit Split(BaseWidget *parent); explicit Split(QWidget *parent); + ~Split() override; pajlada::Signals::NoArgSignal channelChanged;