ui.setupUi(this);
}
-BufferWidget::~BufferWidget() {
-
-}
-
AbstractChatView *BufferWidget::createChatView(BufferId id) {
- QWidget *chatView;
- chatView = new ChatView(Client::buffer(id), this);
+ 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) {