[Panel-devel] [PATCH] Plasma::ProgressBar

Jon de Andrés jondeandres at gmail.com
Thu Sep 13 23:31:11 CEST 2007


Hi!

This patch adds the Plasma::ProgressBar to the widgets lib for Plasma. I've 
also made a stupid test for the widget.

I have some doubts with the sizeHint() method and the rect property of 
QStyleOptionProgressBarV2. Actually in the paintWidget method i've used:

options.rect = geometry().toRect();

So the developer can change the size of the ProgressBar using the 
setGeometry() method from Plasma::WIdget. Really i don't know if this is the 
correct way to set the area to be drawn. Anyway, i hope this will help 
Plasma.

If it's needed any change in the patch, please tell me.
Thanks for the feedback.

-- 
Jon de Andrés Frías
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plasma_progressbar_and_test.diff
Type: text/x-diff
Size: 13254 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20070913/84421297/attachment-0001.bin 


More information about the Panel-devel mailing list