optimize QGraphicsItem::mouseMoveEvent() a bit
authorKonstantin Ritt <ritt.ks@gmail.com>
Sat, 20 Aug 2011 02:54:15 +0000 (06:54 +0400)
committerKonstantin Ritt <ritt.ks@gmail.com>
Mon, 22 Aug 2011 15:36:29 +0000 (19:36 +0400)
commit74d790d1b3539a4b6b5151409b8134e166e2cf7f
tree3e91d1e42ece369f5675765245296e4fb8cd67de
parent2f5855e8d891a7e93bdb721243f1c0b10fcb5ad9
optimize QGraphicsItem::mouseMoveEvent() a bit

by avoiding an unnecessary checks and using the hash iterator instead
of hash lookup (also note that QHash is a bit bit faster than QMap)
src/gui/graphicsview/qgraphicsitem.cpp
src/gui/graphicsview/qgraphicsscene_p.h