On Friday 07 November 2008 17:56:11 Rob Scheepmaker wrote:
> While I was updating the kuiserver applet to use the new progress-bar
> design I suddenly had the need to obtain the size of a label in the
> progress-bar svg. JobWidget displays the filename elided
> ("file://home/...ample.png") and for this to work the width of the label is
> needed. This patch is pretty straightforward, but I didn't want to add
> something to public api without approval from other members of the plasma
> team.

Isn't that what the sizeHint is there for? You should be able to get at that 
with meter->nativeWidget()->sizeHint() then ...
-- 
sebas

 http://www.kde.org | http://vizZzion.org |  GPG Key ID: 9119 0EF9 

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to