summaryrefslogtreecommitdiffstats
path: root/qt-models/maplocationmodel.h
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-07-17 23:04:00 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-28 07:31:11 -0700
commitde90480b462891d1b03f8c40c9a42a7bf29d6d35 (patch)
treea3190260a84c5721f8e80e17a8427aea22d93d5b /qt-models/maplocationmodel.h
parentffcfde3b6232d0537043d832459be521c9a7f996 (diff)
downloadsubsurface-de90480b462891d1b03f8c40c9a42a7bf29d6d35.tar.gz
maplocationmodel: use QVector for the MapLocation storage
QVector is faster, use it for "m_mapLocations" instead of QList. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'qt-models/maplocationmodel.h')
-rw-r--r--qt-models/maplocationmodel.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/qt-models/maplocationmodel.h b/qt-models/maplocationmodel.h
index c73fa246e..547641fe7 100644
--- a/qt-models/maplocationmodel.h
+++ b/qt-models/maplocationmodel.h
@@ -3,7 +3,7 @@
#define MAPLOCATIONMODEL_H
#include <QObject>
-#include <QList>
+#include <QVector>
#include <QHash>
#include <QByteArray>
#include <QAbstractListModel>
@@ -43,14 +43,14 @@ public:
int rowCount(const QModelIndex &parent) const override;
int count();
void add(MapLocation *);
- void addList(QList<MapLocation *>);
+ void addList(QVector<MapLocation *>);
void clear();
protected:
QHash<int, QByteArray> roleNames() const;
private:
- QList<MapLocation *> m_mapLocations;
+ QVector<MapLocation *> m_mapLocations;
QHash<int, QByteArray> m_roles;
signals: