mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cleanup: remove MapLocationModel::isSelected() function
That function was replaced by a model-attribute. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
1d01fff006
commit
773604f0df
2 changed files with 0 additions and 9 deletions
|
@ -236,12 +236,6 @@ void MapLocationModel::setSelected(const QVector<dive_site *> &divesites)
|
||||||
m_selectedDs = divesites;
|
m_selectedDs = divesites;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MapLocationModel::isSelected(const QVariant &dsVariant) const
|
|
||||||
{
|
|
||||||
dive_site *ds = dsVariant.value<dive_site *>();
|
|
||||||
return ds && m_selectedDs.contains(ds);
|
|
||||||
}
|
|
||||||
|
|
||||||
MapLocation *MapLocationModel::getMapLocation(const struct dive_site *ds)
|
MapLocation *MapLocationModel::getMapLocation(const struct dive_site *ds)
|
||||||
{
|
{
|
||||||
MapLocation *location;
|
MapLocation *location;
|
||||||
|
|
|
@ -69,9 +69,6 @@ public:
|
||||||
MapLocation *getMapLocation(const struct dive_site *ds);
|
MapLocation *getMapLocation(const struct dive_site *ds);
|
||||||
const QVector<dive_site *> &selectedDs() const;
|
const QVector<dive_site *> &selectedDs() const;
|
||||||
Q_INVOKABLE void setSelected(struct dive_site *ds);
|
Q_INVOKABLE void setSelected(struct dive_site *ds);
|
||||||
// The dive site is passed as a QVariant, because a null-QVariant is not automatically
|
|
||||||
// transformed into a null pointer and warning messages are spewed onto the console.
|
|
||||||
Q_INVOKABLE bool isSelected(const QVariant &ds) const;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
QHash<int, QByteArray> roleNames() const override;
|
QHash<int, QByteArray> roleNames() const override;
|
||||||
|
|
Loading…
Add table
Reference in a new issue