projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
giving the message model the control over the dynamic backlog requests
[quassel.git]
/
src
/
qtui
/
topicwidget.cpp
diff --git
a/src/qtui/topicwidget.cpp
b/src/qtui/topicwidget.cpp
index
7d2d90b
..
c8c5aae
100644
(file)
--- a/
src/qtui/topicwidget.cpp
+++ b/
src/qtui/topicwidget.cpp
@@
-23,12
+23,15
@@
#include <QDebug>
#include "client.h"
#include <QDebug>
#include "client.h"
+#include "iconloader.h"
#include "networkmodel.h"
TopicWidget::TopicWidget(QWidget *parent)
: AbstractItemView(parent)
{
ui.setupUi(this);
#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();
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;
void TopicWidget::setTopic(const QString &newtopic) {
if(_topic == newtopic)
return;
-
+
_topic = newtopic;
ui.topicLabel->setText(newtopic);
ui.topicLineEdit->setText(newtopic);
_topic = newtopic;
ui.topicLabel->setText(newtopic);
ui.topicLineEdit->setText(newtopic);
@@
-110,6
+113,6
@@
bool TopicWidget::eventFilter(QObject *obj, QEvent *event) {
switchPlain();
return true;
}
switchPlain();
return true;
}
-
+
return false;
}
return false;
}