Make the columnhandleitem fade in smoother
Currently when mousing over a columnhandleitem the fadein is extremely quick, and blocky. It's set to have a 150ms fade in, and its updated every 40ms by default. Thats four frames, much less than the eye can handle.
I've modified it here to take 350ms, and update every 20ms. This brings us to 18 fps, which is much less noticible to the eye. Because the paintEvent then is called so often and so quickly, I've cached the rulerColor. It would probably also make sense to cache the gradiant, so all the paintEvent does is set the alpha and paint.
The downside to caching that I'm sure theres a workaround that I havn't found yet, is that there is no resizeEvent (for the gradiant caching) or paletteChangeEvent (for the color caching) on graphics items, meaning this can get out of date fairly easily. This would need to be fixed to make the cache truly work.
#1 Updated by EgS about 11 years ago
I've applied your patch. When the application palette changes, the scene updates the color of the column handles.