+void NickListWidget::setBuffer(BufferId id) {
+ if(!id.isValid()) {
+ ui.stackedWidget->setCurrentWidget(ui.emptyPage);
+ return;
+ }
+ /*
+ if(buf->bufferType() != Buffer::ChannelType) {
+ ui.stackedWidget->setCurrentWidget(ui.emptyPage);
+ } else {
+ if(nickViews.contains(buf)) {
+ ui.stackedWidget->setCurrentWidget(nickViews.value(buf));
+ } else {
+ NickView *view = new NickView(this);
+ view->setModel(buf->nickModel());
+ nickViews[buf] = view;
+ ui.stackedWidget->addWidget(view);
+ ui.stackedWidget->setCurrentWidget(view);
+ connect(buf, SIGNAL(destroyed(QObject *)), this, SLOT(bufferDestroyed(QObject *)));
+ }
+ }
+ */
+}