fix ctrl-w that I broke KKona

fix #369
This commit is contained in:
Rasmus Karlsson 2018-04-28 22:00:05 +02:00
parent 01b2230bcf
commit 65f5430d8b
2 changed files with 9 additions and 4 deletions

View file

@ -38,6 +38,12 @@ using namespace chatterino::messages;
namespace chatterino { namespace chatterino {
namespace widgets { namespace widgets {
Split::Split(SplitContainer *parent)
: Split((QWidget *)parent)
{
this->container = parent;
}
Split::Split(QWidget *parent) Split::Split(QWidget *parent)
: BaseWidget(parent) : BaseWidget(parent)
, container(nullptr) , container(nullptr)

View file

@ -22,10 +22,6 @@ namespace widgets {
class SplitContainer; class SplitContainer;
class xD
{
};
// Each ChatWidget consists of three sub-elements that handle their own part of the chat widget: // Each ChatWidget consists of three sub-elements that handle their own part of the chat widget:
// ChatWidgetHeader // ChatWidgetHeader
// - Responsible for rendering which channel the ChatWidget is in, and the menu in the top-left of // - 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 Q_OBJECT
public: public:
explicit Split(SplitContainer *parent);
explicit Split(BaseWidget *parent);
explicit Split(QWidget *parent); explicit Split(QWidget *parent);
~Split() override; ~Split() override;
pajlada::Signals::NoArgSignal channelChanged; pajlada::Signals::NoArgSignal channelChanged;