Make topic widget edits actually change the topic
Since the topic widget currently is an editable QLineEdit, pressing Enter should change the topic. Also, it would be nice to restore the topic widget after n seconds if one has edited it and did NOT press enter. And a history of topics would be cool, so one could quickly reset the topic back to an older state if necessary. In that case, changing the QLineEdit to an editable QComboBox might be cool.
#1 Updated by EgS almost 12 years ago
This has been already on my internal todo-list. But anyone could to this.
Like the InputWidget an BufferWidget I recommend to make the TopicWidget behave like a View to the BufferModel. That means, that the Edit line could behave like a Delagate/Editor.
aka: if the topicline has been changed, just call currentIndex().setData(topicLine.text());
The BufferItem needs to implement a setter for the topic, which basically just calls: Client::userInput(bufferInfo(), "topic " + newTopic);
Hope this is not too confusing ;)