#include "bufferwidget.h"
#include "chatview.h"
-#include "chatwidget.h"
#include "settings.h"
#include "client.h"
ui.setupUi(this);
}
-BufferWidget::~BufferWidget() {
-
-}
-
AbstractChatView *BufferWidget::createChatView(BufferId id) {
- QWidget *chatView;
-#ifdef SPUTDEV
- chatView = new ChatView(Client::buffer(id), this);
-#else
- chatView = new ChatWidget(id, this);
-#endif
+ ChatView *chatView;
+ chatView = new ChatView(id, this);
_chatViews[id] = chatView;
ui.stackedWidget->addWidget(chatView);
chatView->setFocusProxy(this);
- return dynamic_cast<AbstractChatView*>(chatView);
+ chatView->setBufferForBacklogFetching(id);
+ return chatView;
}
void BufferWidget::removeChatView(BufferId id) {