Project

General

Profile

Feature #96

Make topic widget edits actually change the topic

Added by Sputnick almost 17 years ago. Updated almost 16 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Quassel Client
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
OS:
Any

Description

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.

History

#1 Updated by EgS almost 17 years ago

This has been already on my internal todo-list. But anyone could to this.

My suggestions:

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 ;)

Also available in: Atom PDF