OSDN Git Service

Observer mode: Fix automatic selection of all instances
authorKai Koehne <kai.koehne@nokia.com>
Mon, 25 Oct 2010 12:27:39 +0000 (14:27 +0200)
committerKai Koehne <kai.koehne@nokia.com>
Fri, 12 Nov 2010 14:08:09 +0000 (15:08 +0100)
commitc33348a49fa24cdd22dd0c0957e9712c799f3d17
treec39f56da3c27623c92ea42e9c4b35fa58e6a3342
parent7e50ebcfba9951d149a6235e2f9d9df9f02b481f
Observer mode: Fix automatic selection of all instances

If the user clicks on an instance of an element in the running app
while in server mode, the cursor selection is automatically updated.
However, the change of the cursor then leads to all the other
instances of the element at the cursor position being selected too.

Prevent this 'call back' in the QmlInspector by checking whether one
of the newly selected items is the one just selected.

Simpler mechanisms (like a sequential blocking of updates) don't
work because the call back happens through a QTimer.

Task-number: QTCREATORBUG-2366
src/plugins/qmljsinspector/qmljsinspector.cpp
src/plugins/qmljsinspector/qmljsinspector.h