mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
3db50aedea
commit
1e1f33c0f5
2 changed files with 4 additions and 5 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue