Bug 181021

Summary: the bar of plasma::meter has strange margins
Product: [Unmaintained] plasma4 Reporter: Giulio Camuffo <giuliocamuffo>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: andresbajotierra, jtamate
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Giulio Camuffo 2009-01-16 22:28:43 UTC
Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

I'm working with Plasma::Meter on kde 4.2 rc1, but I noticed this since some time.

Put a Plasma::Meter in a Plasma::Applet and set the size of the meter to, e.g QSize(4,178). The meter will put a margin of 1 pixel on the left and on the right of the bar.
If you change the height to 6 the margins will be 2 pixels large, and increasing the height will increase the margin itself, so, e.g. setting the height to 25 will make 6 wide margins. 
But try to set the height 5 pixels high: the margin will be 18!
And 5 is not the only one: 15 "returns" 10, 16 "returns" 2.

So, if in principle the margin increases with the height, there are some height values that break this "rule".
Comment 1 Jaime Torres 2010-01-02 12:33:57 UTC
Does this still happens with KDESC 4.4 beta 2?
If it is still there, could you also attach a screenshot of the problem ?
Comment 2 Dario Andres 2010-01-12 17:56:24 UTC
Waiting for feedback
Comment 3 Giulio Camuffo 2010-01-12 21:22:15 UTC
Sorry for the delay.
I just tried and it seems to be fixed now. I'll close it as fixed.