summaryrefslogtreecommitdiffstats
path: root/qt-models/gpslistmodel.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-09-29 10:44:27 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-04 09:19:10 -0700
commit1e1f33c0f5ea134b832a6ff52086d83d1ef23111 (patch)
tree2f7dd01e09ad54b4958768d96102de48d3bda648 /qt-models/gpslistmodel.h
parent3db50aedeaea94b7395fe6fcdb56bda9bee2f2cb (diff)
downloadsubsurface-1e1f33c0f5ea134b832a6ff52086d83d1ef23111.tar.gz
Cleanup: Make constructor of singletons private
This guarantees that they are actually singletons: there can only be one application-wide instantiation of these objects. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/gpslistmodel.h')
-rw-r--r--qt-models/gpslistmodel.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/qt-models/gpslistmodel.h b/qt-models/gpslistmodel.h
index e705825cc..bce84c985 100644
--- a/qt-models/gpslistmodel.h
+++ b/qt-models/gpslistmodel.h
@@ -10,7 +10,6 @@ class GpsListModel : public QAbstractListModel
{
Q_OBJECT
public:
-
enum GpsListRoles {
GpsDateRole = Qt::UserRole + 1,
GpsNameRole,
@@ -20,13 +19,13 @@ public:
};
static GpsListModel *instance();
- GpsListModel();
void clear();
int rowCount(const QModelIndex &parent = QModelIndex()) const;
QHash<int, QByteArray> roleNames() const;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
void update();
private:
+ GpsListModel();
QVector<gpsTracker> m_gpsFixes;
};