diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-07-17 22:59:14 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-28 07:31:11 -0700 |
commit | 6ed807f52d7837e1e8e87a182ca053ca17f45b5b (patch) | |
tree | 19f04e5ad9029b5a66a01e80cba03e54634ae736 /qt-models/maplocationmodel.h | |
parent | 8fe068f1915f91bb3d9463874515db7f83145d8a (diff) | |
download | subsurface-6ed807f52d7837e1e8e87a182ca053ca17f45b5b.tar.gz |
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>
Diffstat (limited to 'qt-models/maplocationmodel.h')
-rw-r--r-- | qt-models/maplocationmodel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-models/maplocationmodel.h b/qt-models/maplocationmodel.h index 4aeee0364..c73fa246e 100644 --- a/qt-models/maplocationmodel.h +++ b/qt-models/maplocationmodel.h @@ -43,6 +43,7 @@ public: int rowCount(const QModelIndex &parent) const override; int count(); void add(MapLocation *); + void addList(QList<MapLocation *>); void clear(); protected: |