From 65f5430d8bdbfadc2ceb1e824d457d9d76d2bd1f Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Sat, 28 Apr 2018 22:00:05 +0200 Subject: [PATCH] fix ctrl-w that I broke KKona fix #369 --- src/widgets/split.cpp | 6 ++++++ src/widgets/split.hpp | 7 +++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/widgets/split.cpp b/src/widgets/split.cpp index e8f495fc0..d4408191a 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 fb3244d3a..7fef6acf8 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;