Project

General

Profile

Bug #308

Make the columnhandleitem fade in smoother

Added by Hydrogen over 16 years ago. Updated almost 16 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Quassel GUI (Qt)
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Version:
0.13.1
OS:
Any

Description

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.

columnhandleitem.diff (1.96 KB) columnhandleitem.diff admin, 08/31/2008 06:09 PM

Associated revisions

Revision ef6faa99 (diff)
Added by Marcus Eggenberger about 16 years ago

Fixing BR #308 - make column handle fade smoother

History

#1 Updated by EgS about 16 years ago

Fixed in current git:
http://git.quassel-irc.org/?p=quassel.git;a=commit;h=ef6faa994fca6bf7332c7a3761b2e68a133de6dc

I've applied your patch. When the application palette changes, the scene updates the color of the column handles.

Also available in: Atom PDF