diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-10-29 14:28:02 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-10-30 09:12:58 (GMT) |
commit | 83fff2f970b9a7b41861336c7dca0eadbda28099 (patch) | |
tree | acbd743e52fe10c281755fb07e769732ce56f696 /src/gui/styles/qwindowsvistastyle.cpp | |
parent | dc4e074324eb91a8a16e14c86ff41b03647b4cfa (diff) | |
download | Qt-83fff2f970b9a7b41861336c7dca0eadbda28099.zip Qt-83fff2f970b9a7b41861336c7dca0eadbda28099.tar.gz Qt-83fff2f970b9a7b41861336c7dca0eadbda28099.tar.bz2 |
Introduce internal StateType to avoid excessive qobject_casts
The state machine algorithm frequently needs to know what type a state
is, e.g. if it is atomic, final or a history state. We were using
qobject_cast() to determine this, but that function is expensive.
This commit introduces an internal StateType to be able to differentiate
between the different types of state. This vastly improves performance.
Reviewed-by: Eskil Abrahamsen Blomfeldt
Diffstat (limited to 'src/gui/styles/qwindowsvistastyle.cpp')
0 files changed, 0 insertions, 0 deletions