OSDN Git Service

QmlDesigner.qmlPuppet: fixes a bug when dragging in a WebView on KDE
authorThomas Hartmann <Thomas.Hartmann@nokia.com>
Tue, 26 Apr 2011 11:11:23 +0000 (13:11 +0200)
committercon <qtc-committer@nokia.com>
Tue, 26 Apr 2011 11:44:32 +0000 (13:44 +0200)
commit5b97322a19321893eeb3c8b4cb27b0b121d96d9a
treec20ebf3d640433365f7d6703893d0218565ab54b
parent0f9334329de6db7511802e515d61223c1dacc955
QmlDesigner.qmlPuppet: fixes a bug when dragging in a WebView on KDE

WebView object contains a QIcon property ("reload.icon"),
which fails to be streamed from the puppet (client) to Qt Creator (server).
The QIcon is created by a 'KIconEngine' in the KDE case.

which isn't found on the QtCreator side.
This leads operator>> in qicon.cpp to not read anything from
the buffer at all ... leading to all following properties being
invalid, since read from the wrong bytes in the stream.

Solution: Since QIcon leads to problems and we have no current use case
for a QIcon property in Bauhaus we just ignore properties of type QIcon.

Reviewed-by: Marco Bubke
Task-number: QTCREATORBUG-4596
src/plugins/qmldesigner/designercore/instances/nodeinstanceserver.cpp