1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-14 10:54:24 +02:00

Proper use of prepareGeometryChange()

This commit is contained in:
2016-04-01 21:20:23 +02:00
parent 803c4aecce
commit 34fcbfb60f
6 changed files with 18 additions and 11 deletions

View File

@ -65,18 +65,19 @@ void InfoItem::insert(const QString &key, const QString &value)
KV kv(key, value);
int i;
prepareGeometryChange();
if ((i = _list.indexOf(kv)) < 0)
_list.append(kv);
else
_list[i] = kv;
updateBoundingRect();
prepareGeometryChange();
}
void InfoItem::clear()
{
prepareGeometryChange();
_list.clear();
updateBoundingRect();
prepareGeometryChange();
}