QmlDebugClient: rename serviceVersion to remoteVersion and return int

The name change is in preparation for the upcoming unification of the
debug server and client APIs. Expressing versions as floats is pretty
useless as we cannot properly compare them. Besides, so far we're using
exactly 3 different versions: -1 (a.k.a. invalid), 1, and 2.

Change-Id: Ie4012d09362009b08a1263b15bc552731a1f255e
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
Ulf Hermann
2014-05-05 17:40:53 +02:00
parent ba5c136a6d
commit b775104361
4 changed files with 9 additions and 5 deletions

View File

@@ -119,7 +119,7 @@ void QmlAdapter::clientStateChanged(QmlDebugClient::State state)
float version = 0;
if (QmlDebugClient *client = qobject_cast<QmlDebugClient*>(sender())) {
serviceName = client->name();
version = client->serviceVersion();
version = client->remoteVersion();
}
logServiceStateChange(serviceName, version, state);