Use custom signals to record previous name
Signed-off-by: Yihe Li <winmikedows@hotmail.com>
This commit is contained in:
parent
11a0dbf810
commit
a2e44c0ef7
8 changed files with 18 additions and 44 deletions
|
@ -397,6 +397,7 @@ void ListViewDelegate::setModelData(QWidget* editor, QAbstractItemModel* model,
|
|||
// Prevent instance names longer than 128 chars
|
||||
text.truncate(128);
|
||||
if (text.size() != 0) {
|
||||
emit textChanged(model->data(index).toString(), text);
|
||||
model->setData(index, text);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue