#include <QDebug>
#include "client.h"
+#include "iconloader.h"
#include "networkmodel.h"
TopicWidget::TopicWidget(QWidget *parent)
: AbstractItemView(parent)
{
ui.setupUi(this);
+ ui.topicEditButton->setPixmap(BarIcon("edit-rename"));
+
ui.topicLineEdit->hide();
ui.topicLineEdit->installEventFilter(this);
ui.topicLabel->show();
void TopicWidget::setTopic(const QString &newtopic) {
if(_topic == newtopic)
return;
-
+
_topic = newtopic;
ui.topicLabel->setText(newtopic);
ui.topicLineEdit->setText(newtopic);
switchPlain();
return true;
}
-
+
return false;
}