From: Daniel Albers Date: Thu, 17 Sep 2009 20:23:52 +0000 (+0200) Subject: make topicWidget capable of unsetting the topic X-Git-Tag: 0.5-rc2~28 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=c8467bd28cb62ffbc4d3f6c7b459ce75ef580238 make topicWidget capable of unsetting the topic --- diff --git a/src/qtui/topicwidget.cpp b/src/qtui/topicwidget.cpp index 08546471..3b025021 100644 --- a/src/qtui/topicwidget.cpp +++ b/src/qtui/topicwidget.cpp @@ -34,6 +34,7 @@ TopicWidget::TopicWidget(QWidget *parent) ui.topicLineEdit->installEventFilter(this); connect(ui.topicLabel, SIGNAL(clickableActivated(Clickable)), SLOT(clickableActivated(Clickable))); + connect(ui.topicLineEdit, SIGNAL(noTextEntered()), SLOT(on_topicLineEdit_textEntered())); UiSettings s("TopicWidget"); s.notify("DynamicResize", this, SLOT(updateResizeMode())); diff --git a/src/uisupport/multilineedit.cpp b/src/uisupport/multilineedit.cpp index 1f9515e5..f4a0b95a 100644 --- a/src/uisupport/multilineedit.cpp +++ b/src/uisupport/multilineedit.cpp @@ -310,6 +310,8 @@ void MultiLineEdit::on_returnPressed(const QString & text) { } reset(); tempHistory.clear(); + } else { + emit noTextEntered(); } } diff --git a/src/uisupport/multilineedit.h b/src/uisupport/multilineedit.h index d12dfe6d..d8a81ec6 100644 --- a/src/uisupport/multilineedit.h +++ b/src/uisupport/multilineedit.h @@ -78,6 +78,7 @@ public slots: signals: void textEntered(const QString &text); + void noTextEntered(); protected: virtual void keyPressEvent(QKeyEvent * event);