diff options
-rw-r--r-- | qt-models/divelistmodel.h | 6 | ||||
-rw-r--r-- | qt-models/gpslistmodel.h | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/qt-models/divelistmodel.h b/qt-models/divelistmodel.h index e7fb5369c..90cc51966 100644 --- a/qt-models/divelistmodel.h +++ b/qt-models/divelistmodel.h @@ -11,7 +11,6 @@ class DiveListSortModel : public QSortFilterProxyModel { Q_OBJECT public: - DiveListSortModel(); static DiveListSortModel *instance(); void setSourceModel(QAbstractItemModel *sourceModel); Q_INVOKABLE void reload(); @@ -25,6 +24,7 @@ public slots: protected: bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const; private: + DiveListSortModel(); QString filterString; void updateFilterState(); }; @@ -33,7 +33,6 @@ class DiveListModel : public QAbstractListModel { Q_OBJECT public: - enum DiveListRoles { DiveRole = Qt::UserRole + 1, DiveDateRole, @@ -47,7 +46,6 @@ public: }; static DiveListModel *instance(); - DiveListModel(); void addDive(const QList<dive *> &listOfDives); void addAllDives(); void insertDive(int i); @@ -65,6 +63,8 @@ public: void resetInternalData(); void clear(); // Clear all dives in core Q_INVOKABLE DiveObjectHelper at(int i); +private: + DiveListModel(); }; #endif // DIVELISTMODEL_H 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; }; |