Bug 181021 - the bar of plasma::meter has strange margins
Summary: the bar of plasma::meter has strange margins
Status: RESOLVED FIXED
Alias: None
Product: plasma4
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-16 22:28 UTC by Giulio Camuffo
Modified: 2010-01-12 21:22 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.