maplocationmodel: add the addList() method

This method should be used if many markers are added at once.
It's main purpose is to reduces the number of beingInsertRows()
calls.

Make MapWidgetHelper::reloadMapLocations() use it.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
Lubomir I. Ivanov 2017-07-17 22:59:14 +03:00 committed by Dirk Hohndel
parent 8fe068f191
commit 6ed807f52d
3 changed files with 13 additions and 1 deletions

View file

@ -43,6 +43,7 @@ public:
int rowCount(const QModelIndex &parent) const override;
int count();
void add(MapLocation *);
void addList(QList<MapLocation *>);
void clear();
protected: