+void TopicWidget::setTopic(const QString &newtopic) {
+ ui.topicLineEdit->setText(newtopic);
+ ui.topicLineEdit->setCursorPosition(0);
+}
+
+void TopicWidget::on_topicLineEdit_returnPressed() {
+ ui.topicLineEdit->setCursorPosition(0);
+ emit topicChanged(topic());