Bug 181241 - Plasma::Meter doesn't respect the layout
Summary: Plasma::Meter doesn't respect the layout
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-18 22:06 UTC by Giulio Camuffo
Modified: 2010-05-11 05:56 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screenshot (18.61 KB, image/png)
2010-01-12 21:30 UTC, Giulio Camuffo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Giulio Camuffo 2009-01-18 22:06:47 UTC
Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

I'm using kde 4.2rc1 and i'm experiencing some problems with the plasma meter:
put a Plasma::Meter and an other QGraphicsWidget in a layout in two different rows or columns, and set two different stretch factors to the two rows or columns. It simply won't work. 
I tried putting an other widget in an other row or column and setting an other stretch factor. The two rows or columns with the widgets in them will resize themselves according to the stretches but the meter's size will remain always fixed.
This happens even when calling layout->setRowMaximumHeight(rowWithTheMeter, height) or the correspondig method for the column.
The meter will simply stay as it was without calling that.
But calling meter->setMaximumHeight, e.g., works, so I'm not completely sure this is a Plasma::Meter bug, but maybe you can understand where is the problem.
Comment 1 Jaime Torres 2010-01-02 12:35:03 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:45 UTC
Waiting for feedback
Comment 3 Giulio Camuffo 2010-01-12 21:30:47 UTC
Created attachment 39823 [details]
screenshot
Comment 4 Giulio Camuffo 2010-01-12 21:32:13 UTC
This seems to happen still now:
Look at the screenshot: i set for the first row (the one with the labels) a stretch factor of 10, and for the row with the meter a factor of 1. but the meter ignores this and it is much bugger than the labels.
Comment 5 Dario Andres 2010-01-13 20:07:07 UTC
Thanks
Comment 6 Aaron J. Seigo 2010-05-11 05:56:43 UTC
SVN commit 1125260 by aseigo:

don't set the size policy to be fixed
BUG:181241


 M  +1 -1      meter.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1125260