[REVIEW] Add labelSize() to Plasma::Meter

Sebastian Kügler sebas at kde.org
Sat Nov 8 11:48:54 CET 2008


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 



More information about the Plasma-devel mailing list