1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

uavobj browser: add object size to tree display

This commit is contained in:
Stacey Sheldon 2011-12-30 13:04:05 -05:00
parent bd9f3569db
commit e980bb863f

View File

@ -95,7 +95,7 @@ void UAVObjectTreeModel::addDataObject(UAVDataObject *obj)
int index = root->objIds().indexOf(obj->getObjID());
addInstance(obj, root->child(index));
} else {
DataObjectTreeItem *data = new DataObjectTreeItem(obj->getName());
DataObjectTreeItem *data = new DataObjectTreeItem(obj->getName() + " (" + QString::number(obj->getNumBytes()) + " bytes)");
connect(data, SIGNAL(updateHighlight(TreeItem*)), this, SLOT(updateHighlight(TreeItem*)));
int index = root->nameIndex(obj->getName());
root->insert(index, data);