Bug 251520

Summary: Plasma::Meter::minimumSize() = QSizeF(0, 0) for Plasma::Meter::BarMeterHorizontal
Product: [Unmaintained] plasma4 Reporter: Andreas Fink <finkandreas>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED NOT A BUG    
Severity: normal CC: aseigo
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Test applet with 10 labels and 5 meters in a vertical layout

Description Andreas Fink 2010-09-17 00:11:28 UTC
Version:           unspecified (using KDE 4.5.1) 
OS:                Linux

The minimuSize for a horizontal BarMeter is (0,0) which is quite annoying because you need to resize the attached plasma applet to see the meters at all (in the beginning the applet is too small, so all meters have as size (0,0))
A minimumSize() > (0, 0) would be nice (just as it was with kde-4.4). At least a minimum size where you can see the labels and the meter value itself.
Or was there a design issue to set the minimumSize in kde-4.5 to (0,0)?


Reproducible: Always

Steps to Reproduce:
1. Download attached test applet
2. Build and install test applet
3. Put test applet on the desktop
4. Resize it to see the meters

Actual Results:  
Meters are not visible in the beginning

Expected Results:  
Meters should be visible (and if we assign labels, they should not overlap the value scale)
Comment 1 Andreas Fink 2010-09-17 00:15:06 UTC
Created attachment 51735 [details]
Test applet with 10 labels and 5 meters in a vertical layout
Comment 2 Aaron J. Seigo 2010-09-17 20:05:58 UTC
this is a very awkward place to have development discussions. plasma-devel@kde.org is the preferred location (and if needed we can open bug reports based on the threads there).

that said, minimumSize of zero is probably fine (though perhaps with labels it should be the size of the label?) as long as preferredSize is set properly.

in any case, let's take this to plasma-devel@kde.org.