Skip to content
  • Ulf Hermann's avatar
    Timeline: Use QRgb and a lookup table for colors · faf77fd0
    Ulf Hermann authored
    
    
    It makes no sense to return a QColor as the only things we are using
    are the red, green, and blue components. Furthermore, colorFromHue()
    can only generate 360 different colors which we can easily cache
    instead of recalculating them on each request.
    
    This significantly reduces the time it takes to update the timeline
    render nodes.
    
    Change-Id: I7961014364a1bec5b089285148b2e6c141a6dc7d
    Reviewed-by: default avatarChristian Kandeler <christian.kandeler@qt.io>
    faf77fd0