summaryrefslogtreecommitdiff
path: root/src/plugins/geoservices/nokia/placesv2/qplacesearchsuggestionreplyimpl.cpp
diff options
context:
space:
mode:
authorVladimir Bezkorovainyi <vladimir.bezkorovainyi@nokia.com>2012-05-30 18:13:28 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-31 17:57:34 +0200
commit1c356029e308283c4c305dda855a094cf16e19ef (patch)
tree028cc1e9aef5f0dcb0a2966b065b854428df44b1 /src/plugins/geoservices/nokia/placesv2/qplacesearchsuggestionreplyimpl.cpp
parentf72688998639d168444eec32f0b5ec04320369bb (diff)
downloadqtlocation-1c356029e308283c4c305dda855a094cf16e19ef.tar.gz
Move hard-codded messages into separate file and declare constants for them.
Change-Id: I35a2a5ca9d4c4dc20e291051666bb88f4264ab33 Reviewed-by: Jean Gressmann <jean.gressmann@nokia.com>
Diffstat (limited to 'src/plugins/geoservices/nokia/placesv2/qplacesearchsuggestionreplyimpl.cpp')
-rw-r--r--src/plugins/geoservices/nokia/placesv2/qplacesearchsuggestionreplyimpl.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/geoservices/nokia/placesv2/qplacesearchsuggestionreplyimpl.cpp b/src/plugins/geoservices/nokia/placesv2/qplacesearchsuggestionreplyimpl.cpp
index ce4cd3b2..37820e3a 100644
--- a/src/plugins/geoservices/nokia/placesv2/qplacesearchsuggestionreplyimpl.cpp
+++ b/src/plugins/geoservices/nokia/placesv2/qplacesearchsuggestionreplyimpl.cpp
@@ -47,7 +47,9 @@
****************************************************************************/
#include "qplacesearchsuggestionreplyimpl.h"
+#include "../qgeoerror_messages.h"
+#include <QCoreApplication>
#include <QtCore/QJsonDocument>
#include <QtCore/QJsonObject>
#include <QtCore/QJsonArray>
@@ -90,7 +92,7 @@ void QPlaceSearchSuggestionReplyImpl::replyFinished()
{
QJsonDocument document = QJsonDocument::fromJson(m_reply->readAll());
if (!document.isObject()) {
- setError(ParseError, tr("Error parsing response."));
+ setError(ParseError, QCoreApplication::translate(NOKIA_PLUGIN_CONTEXT_NAME, PARSE_ERROR));
emit error(error(), errorString());
return;
}