OSDN Git Service

QuickDesigner: Reduce numbers of redraws / state switching in States Editor
authorKai Koehne <kai.koehne@nokia.com>
Thu, 6 May 2010 13:37:08 +0000 (15:37 +0200)
committerKai Koehne <kai.koehne@nokia.com>
Tue, 15 Jun 2010 13:34:07 +0000 (15:34 +0200)
commit85f3472b224dc09ae47b8b6ae2e953f611a71812
tree6cc3d2a40eedd5e2a26554a608abee346d18e7d7
parent12d6f03d5f219599b4f708ea15a31c3b673d0241
QuickDesigner: Reduce numbers of redraws / state switching in States Editor

nodeInstancePropertyChanged() is called for _every_ state switch ... so
the current assumption that it only reflects real changes does not hold.

Instead, use the orphaned sceneChanged() method to schedule redraws.
However, this still results in some overhead when switching to the base state
(sceneChanged() cannot decide whether it has to redraw all other states
or not).

Reviewed-by: Christiaan Janssen
src/plugins/qmldesigner/components/stateseditor/stateseditorview.cpp