diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-08-31 23:40:34 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-09-06 11:48:47 -0700 |
commit | 406e83ac3004dc0f63b3f2e81d91067276248277 (patch) | |
tree | 764ef1e205e2aa599e40987f4f44a4e32111662b /qt-models/maplocationmodel.h | |
parent | b9c35e21eafc347eba073ba8deb91b7052dbfbae (diff) | |
download | subsurface-406e83ac3004dc0f63b3f2e81d91067276248277.tar.gz |
Cleanup: remove MapLocationModel::count() and the attribute count
These were not used anywhere and the function was redundant [same
result as rowCount()].
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/maplocationmodel.h')
-rw-r--r-- | qt-models/maplocationmodel.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/qt-models/maplocationmodel.h b/qt-models/maplocationmodel.h index 15000bc1d..a89695ccd 100644 --- a/qt-models/maplocationmodel.h +++ b/qt-models/maplocationmodel.h @@ -51,7 +51,6 @@ signals: class MapLocationModel : public QAbstractListModel { Q_OBJECT - Q_PROPERTY(int count READ count NOTIFY countChanged) public: MapLocationModel(QObject *parent = NULL); @@ -59,7 +58,6 @@ public: QVariant data(const QModelIndex &index, int role) const override; int rowCount(const QModelIndex &parent) const override; - int count(); void add(MapLocation *); // If map is not null, it will be used to place new dive sites without GPS location at the center of the map void reload(QObject *map); @@ -78,9 +76,6 @@ private slots: private: QVector<MapLocation *> m_mapLocations; QVector<dive_site *> m_selectedDs; - -signals: - void countChanged(int c); }; #endif |