X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fbufferwidget.cpp;h=fc0634613fe9f44a6503ee1214df295289ef7b3f;hb=5cb0dfcd0cb0d5ee49fc4ca0de6c0116134326a7;hp=4158311b99df4d1b898f3f1780ba8cd678f327a4;hpb=1ef542382777aa0af9f9d1d6835bf6b1af880089;p=quassel.git diff --git a/src/qtui/bufferwidget.cpp b/src/qtui/bufferwidget.cpp index 4158311b..fc063461 100644 --- a/src/qtui/bufferwidget.cpp +++ b/src/qtui/bufferwidget.cpp @@ -19,10 +19,7 @@ ***************************************************************************/ #include "bufferwidget.h" -#include "chatline.h" -#include "chatline-old.h" #include "chatview.h" -#include "chatwidget.h" #include "settings.h" #include "client.h" @@ -32,21 +29,14 @@ BufferWidget::BufferWidget(QWidget *parent) : AbstractBufferContainer(parent) { ui.setupUi(this); } -BufferWidget::~BufferWidget() { - -} - AbstractChatView *BufferWidget::createChatView(BufferId id) { - QWidget *chatView; - if(Global::SPUTDEV) { - chatView = new ChatView(Client::buffer(id), this); - } else { - chatView = new ChatWidget(id, this); - } + ChatView *chatView; + chatView = new ChatView(id, this); _chatViews[id] = chatView; ui.stackedWidget->addWidget(chatView); chatView->setFocusProxy(this); - return dynamic_cast(chatView); + chatView->setBufferForBacklogFetching(id); + return chatView; } void BufferWidget::removeChatView(BufferId id) {