summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsscene.h
diff options
context:
space:
mode:
authorBjoern Erik Nilsen <bjorn.nilsen@nokia.com>2009-04-02 14:48:13 +0200
committerBjoern Erik Nilsen <bjorn.nilsen@nokia.com>2009-04-07 15:51:09 +0200
commit37c72476fc444d3089075473cb4e9aa42ed64694 (patch)
tree9be965f35f51da8bcd9a5347388b7cfd0e08b520 /src/gui/graphicsview/qgraphicsscene.h
parenta10b39a1884c97e62fbe599358ea6a8fb900c528 (diff)
Disable mouse tracking in QGraphicsView if possible.
We don't need mouse tracking unless there are items in the scene that either accept hover events or have a cursor set. This cut-off is extremely efficient in the common case since all items ignore hover events and use the standard cursor by default. We no longer dig for items and do lots of intersection and calculating just for fun :-) We even get rid of the overhead of 2 x QCoreApplication::sendEvent! The next step is to optimize the items(*) functions to simply check for hasCursor()/acceptsHoverEvents() before we do complex checks like intersects/collidesWithPath() etc. Auto test included. Reviewed-by: Andreas
Diffstat (limited to 'src/gui/graphicsview/qgraphicsscene.h')
0 files changed, 0 insertions, 0 deletions