diff options
author | abcd <qt-info@nokia.com> | 2011-07-25 18:03:33 +1000 |
---|---|---|
committer | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2011-07-26 04:32:40 +0200 |
commit | ba173086b432f20f573b0b74d1a2b606e4e2b84f (patch) | |
tree | 18d46a49f7bddd81172ffadaf2064e7e7fbf0200 /src/location | |
parent | 92b852cc98995cd8abbc78fc1b5f8b134c4bd0dc (diff) | |
download | qtlocation-ba173086b432f20f573b0b74d1a2b606e4e2b84f.tar.gz |
Remove placeScore field
This field is meant to represent the quality of the data of a
place, for an end user this isn't very useful. The REST API doesn't
even currently support this field so remove it.
Change-Id: Id3c9ded99262fad6de360814e0119fd15cef1e8e
Reviewed-on: http://codereview.qt.nokia.com/2092
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
Diffstat (limited to 'src/location')
-rw-r--r-- | src/location/qgeoplace.cpp | 22 | ||||
-rw-r--r-- | src/location/qgeoplace.h | 2 | ||||
-rw-r--r-- | src/location/qgeoplace_p.h | 1 |
3 files changed, 0 insertions, 25 deletions
diff --git a/src/location/qgeoplace.cpp b/src/location/qgeoplace.cpp index 6e6014bb..4b60d1f2 100644 --- a/src/location/qgeoplace.cpp +++ b/src/location/qgeoplace.cpp @@ -271,24 +271,6 @@ void QGeoPlace::setAlternativeNames(const QList<QPlaceAlternativeValue> &alterna } /*! - Returns place score. -*/ -qreal QGeoPlace::placeScore() const -{ - Q_D(const QGeoPlace); - return d->placeScore; -} - -/*! - Sets place score. -*/ -void QGeoPlace::setPlaceScore(const qreal &score) -{ - Q_D(QGeoPlace); - d->placeScore = score; -} - -/*! Returns business info. */ QPlaceBusinessInformation QGeoPlace::businessInformation() const @@ -618,7 +600,6 @@ void QGeoPlace::setDetailsFetched(bool fetched) QGeoPlacePrivate::QGeoPlacePrivate() : QSharedData(), type(QGeoPlacePrivate::GeoPlaceType), - placeScore(0.0), mediaCount(0), reviewCount(0), detailsFetched(false) @@ -632,7 +613,6 @@ QGeoPlacePrivate::QGeoPlacePrivate(const QGeoPlacePrivate &other) coordinate(other.coordinate), address(other.address), additionalData(other.additionalData), - placeScore(other.placeScore), businessInfo(other.businessInfo), categories(other.categories), contacts(other.contacts), @@ -675,7 +655,6 @@ bool QGeoPlacePrivate::operator== (const QGeoPlacePrivate &other) const qDebug() << "address:" << (address == other.address); qDebug() << "additionalData: " << (additionalData == other.additionalData); qDebug() << "alternativeNames: " << (alternativeNames == other.alternativeNames); - qDebug() << "placeScore: " << (placeScore == other.placeScore); qDebug() << "businessInfo: " << (businessInfo == other.businessInfo); qDebug() << "categories: " << (categories == other.categories); qDebug() << "descriptions: " << (descriptions == other.descriptions); @@ -700,7 +679,6 @@ bool QGeoPlacePrivate::operator== (const QGeoPlacePrivate &other) const && address == other.address && additionalData == other.additionalData && alternativeNames == other.alternativeNames - && placeScore == other.placeScore && businessInfo == other.businessInfo && categories == other.categories && contacts == other.contacts diff --git a/src/location/qgeoplace.h b/src/location/qgeoplace.h index 54a767b6..ce553038 100644 --- a/src/location/qgeoplace.h +++ b/src/location/qgeoplace.h @@ -95,8 +95,6 @@ public: void setAdditionalData(const QVariantHash &data); QList<QPlaceAlternativeValue> alternativeNames() const; void setAlternativeNames(const QList<QPlaceAlternativeValue> &alternativeNames); - qreal placeScore() const; - void setPlaceScore(const qreal &data); QPlaceBusinessInformation businessInformation() const; void setBusinessInformation(const QPlaceBusinessInformation &business); QList<QPlaceCategory> categories() const; diff --git a/src/location/qgeoplace_p.h b/src/location/qgeoplace_p.h index 6b18c354..f850ced7 100644 --- a/src/location/qgeoplace_p.h +++ b/src/location/qgeoplace_p.h @@ -87,7 +87,6 @@ public: QVariantHash additionalData; QList<QPlaceAlternativeValue> alternativeNames; - qreal placeScore; QPlaceBusinessInformation businessInfo; QList<QPlaceCategory> categories; QList<QPlaceContact> contacts; |