mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
"add split" button now does something (thanks hemirt)
This commit is contained in:
parent
36e236e520
commit
cb4d193b4a
2 changed files with 4 additions and 3 deletions
|
@ -157,7 +157,8 @@ void ChatWidgetHeader::rightButtonClicked()
|
||||||
|
|
||||||
void ChatWidgetHeader::menuAddSplit()
|
void ChatWidgetHeader::menuAddSplit()
|
||||||
{
|
{
|
||||||
printf("Add split for menu (NOT IMPLEMENTED KKarrot)\n");
|
auto page = static_cast<NotebookPage *>(_chatWidget->parentWidget());
|
||||||
|
page->addChat();
|
||||||
}
|
}
|
||||||
void ChatWidgetHeader::menuCloseSplit()
|
void ChatWidgetHeader::menuCloseSplit()
|
||||||
{
|
{
|
||||||
|
|
|
@ -24,7 +24,7 @@ class ChatWidgetHeader : public QWidget
|
||||||
public:
|
public:
|
||||||
explicit ChatWidgetHeader(ChatWidget *parent);
|
explicit ChatWidgetHeader(ChatWidget *parent);
|
||||||
|
|
||||||
ChatWidget *getChatWidget()
|
ChatWidget *getChatWidget() const
|
||||||
{
|
{
|
||||||
return _chatWidget;
|
return _chatWidget;
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@ protected:
|
||||||
void mouseDoubleClickEvent(QMouseEvent *event);
|
void mouseDoubleClickEvent(QMouseEvent *event);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ChatWidget *_chatWidget;
|
ChatWidget * const _chatWidget;
|
||||||
|
|
||||||
QPoint _dragStart;
|
QPoint _dragStart;
|
||||||
bool _dragging;
|
bool _dragging;
|
||||||
|
|
Loading…
Reference in a new issue