Goya and KRichText
Rafael Fernández López
ereslibre at kde.org
Fri May 16 16:56:21 BST 2008
> E.g. if the widget is a QLabel and the style and the text are the same
> as the last time, there is no need to repaint.
> This requires a change in the API.
Ah, well... this is something one could discuss. Goya will only
trigger those paints when the view asks the delegate to paint itself,
and in some special circumstances.
Actually, it doesn't trigger so many paint events. For instance, if
you add a progress bar with Goya, and just do
progressBar->setValue(foo); when foo has changed, the progress bar
won't be updated in goya till you hover with the mouse, click or
whatever. In this example the progress value should be stored somehow
in the model, and when it changes, it should emit dataChanged what
would trigger a repaint, so the progressbar becomes updated.
This is an example of how Goya "saves" repaints.
Rafael Fernández López.
More information about the kde-core-devel