1
0
Fork 0
mirror of https://github.com/EdgeTX/edgetx.git synced 2025-07-26 09:45:16 +03:00

[Companion] Rename category function added

This commit is contained in:
Bertrand Songis 2017-01-18 18:43:12 +01:00
parent c707715f3d
commit 1460620483
4 changed files with 26 additions and 7 deletions

View file

@ -223,7 +223,7 @@ int TreeModel::rowCount(const QModelIndex &parent) const
return parentItem->childCount();
}
bool TreeModel::setData(const QModelIndex &index, const QVariant & value, int role)
bool TreeModel::setData(const QModelIndex & index, const QVariant & value, int role)
{
if (role != Qt::EditRole)
return false;
@ -231,8 +231,9 @@ bool TreeModel::setData(const QModelIndex &index, const QVariant & value, int ro
TreeItem * item = getItem(index);
bool result = item->setData(index.column(), value);
if (result)
if (result) {
emit dataChanged(index, index);
}
return result;
}