mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cleanup: remove MapLocation::coordinateChanged signal
Nobody was listening for that signal. Remove it. This, quite obviously, makse the setCoordinateNoEmit() function redundant. Merge with setCoordinateNoEmit(). Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
15f418e046
commit
fe07a47989
2 changed files with 1 additions and 11 deletions
|
@ -61,12 +61,6 @@ QGeoCoordinate MapLocation::coordinate()
|
|||
}
|
||||
|
||||
void MapLocation::setCoordinate(QGeoCoordinate coord)
|
||||
{
|
||||
m_coordinate = coord;
|
||||
emit coordinateChanged();
|
||||
}
|
||||
|
||||
void MapLocation::setCoordinateNoEmit(QGeoCoordinate coord)
|
||||
{
|
||||
m_coordinate = coord;
|
||||
}
|
||||
|
@ -246,7 +240,7 @@ void MapLocationModel::diveSiteChanged(struct dive_site *ds, int field)
|
|||
const qreal latitude_r = ds->location.lat.udeg * 0.000001;
|
||||
const qreal longitude_r = ds->location.lon.udeg * 0.000001;
|
||||
QGeoCoordinate coord(latitude_r, longitude_r);
|
||||
m_mapLocations[row]->setCoordinateNoEmit(coord);
|
||||
m_mapLocations[row]->setCoordinate(coord);
|
||||
}
|
||||
break;
|
||||
case LocationInformationModel::NAME:
|
||||
|
|
|
@ -21,7 +21,6 @@ public:
|
|||
QVariant getRole(int role) const;
|
||||
QGeoCoordinate coordinate();
|
||||
void setCoordinate(QGeoCoordinate coord);
|
||||
void setCoordinateNoEmit(QGeoCoordinate coord);
|
||||
struct dive_site *divesite();
|
||||
|
||||
enum Roles {
|
||||
|
@ -39,9 +38,6 @@ private:
|
|||
QString m_name;
|
||||
public:
|
||||
bool m_selected = false;
|
||||
|
||||
signals:
|
||||
void coordinateChanged();
|
||||
};
|
||||
|
||||
class MapLocationModel : public QAbstractListModel
|
||||
|
|
Loading…
Add table
Reference in a new issue