diff options
author | Robin Burchell <robin.burchell@crimson.no> | 2017-01-05 21:03:23 +0100 |
---|---|---|
committer | Robin Burchell <robin.burchell@crimson.no> | 2017-01-13 22:40:49 +0000 |
commit | beb4f4c4c98b8c6ad634b13e07aaf9b7a9c54d4a (patch) | |
tree | 2a055d776cbf6528b83d22c0c3d73aa7812867a6 /src/imports/location/qdeclarativegeocodemodel.cpp | |
parent | d08213709959cd52f55b8a277e7485ae14e441c2 (diff) |
QtLocation: Use the newly-introduced qmlWarning instead of qmlInfo
qmlInfo will shortly be returning info-level messages (as the name
hints), rather than warning level messages.
Change-Id: I941f716c4fbe0566e1e5b0ecf673faa7283cde10
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/imports/location/qdeclarativegeocodemodel.cpp')
-rw-r--r-- | src/imports/location/qdeclarativegeocodemodel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/imports/location/qdeclarativegeocodemodel.cpp b/src/imports/location/qdeclarativegeocodemodel.cpp index d8ff4e85..e92949ee 100644 --- a/src/imports/location/qdeclarativegeocodemodel.cpp +++ b/src/imports/location/qdeclarativegeocodemodel.cpp @@ -529,7 +529,7 @@ int QDeclarativeGeocodeModel::count() const QDeclarativeGeoLocation *QDeclarativeGeocodeModel::get(int index) { if (index < 0 || index >= declarativeLocations_.count()) { - qmlInfo(this) << QStringLiteral("Index '%1' out of range").arg(index); + qmlWarning(this) << QStringLiteral("Index '%1' out of range").arg(index); return 0; } return declarativeLocations_.at(index); @@ -679,12 +679,12 @@ void QDeclarativeGeocodeModel::setQuery(const QVariant &query) connect(address_, SIGNAL(streetChanged()), this, SLOT(queryContentChanged())); connect(address_, SIGNAL(postalCodeChanged()), this, SLOT(queryContentChanged())); } else { - qmlInfo(this) << QStringLiteral("Unsupported query type for geocode model ") + qmlWarning(this) << QStringLiteral("Unsupported query type for geocode model ") << QStringLiteral("(coordinate, string and Address supported)."); return; } } else { - qmlInfo(this) << QStringLiteral("Unsupported query type for geocode model ") + qmlWarning(this) << QStringLiteral("Unsupported query type for geocode model ") << QStringLiteral("(coordinate, string and Address supported)."); return; } |