X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Ftopicwidget.cpp;h=c8c5aaeb21c46d9615538986ebed192b4a12cf37;hb=fb011e52bc6613198a65e037f0752f6361339aeb;hp=7d2d90bddbe2ba3985e6e35c4b82d60de777a503;hpb=9861cef46e8a052140070b4c643092f9c62aa6df;p=quassel.git diff --git a/src/qtui/topicwidget.cpp b/src/qtui/topicwidget.cpp index 7d2d90bd..c8c5aaeb 100644 --- a/src/qtui/topicwidget.cpp +++ b/src/qtui/topicwidget.cpp @@ -23,12 +23,15 @@ #include #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(); @@ -51,7 +54,7 @@ void TopicWidget::dataChanged(const QModelIndex &topLeft, const QModelIndex &bot void TopicWidget::setTopic(const QString &newtopic) { if(_topic == newtopic) return; - + _topic = newtopic; ui.topicLabel->setText(newtopic); ui.topicLineEdit->setText(newtopic); @@ -110,6 +113,6 @@ bool TopicWidget::eventFilter(QObject *obj, QEvent *event) { switchPlain(); return true; } - + return false; }