Bug 249003

Summary: Battery monitor widget does not display full list of power profiles in visible part of dropdown
Product: [Unmaintained] plasma4 Reporter: Daniel Hahler <kde-bugzilla>
Component: widget-batteryAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: aseigo, jtappin, sebas
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot showing this problem

Description Daniel Hahler 2010-08-25 16:00:56 UTC
Version:           unspecified (using KDE 4.5.0) 
OS:                Linux

I am using the Battery Monitor widget to switch power profiles between Performance and Presentation, and since a while (maybe since the 4.5 series) it does not display the complete list of options in the dropdown anymore.

I work around this by selecting/opening the dropdown and pressing "End" then to get to the end of the list (which apparently is "Presentation").

I am attaching a screenshot, which illustrates this.

Reproducible: Always

Steps to Reproduce:
1. Add the Battery Monitor widget
2. Left-click it, "Power Management" settings come up
3. Click on the list of power profiles.
Comment 1 Aaron J. Seigo 2010-08-26 03:20:14 UTC
Sebas: well, back to the drawing board? :)

actually, i think what we can do here is take the code for Plasma::PushButton+menu in workspace/libs/plasmagenericshell/widgetexplorer/appletsfiltering.cpp (in particular FilteringTabs::mouseReleaseEvent, though in this case perhaps it would be better in mousePressEvent) and use that here as well. that will give a proper top-level menu.

Sebas: thoughts?
Comment 2 Sebastian Kügler 2010-08-26 12:11:25 UTC
@Daniel: Can you please attach the screenshot?
Comment 3 Daniel Hahler 2010-08-26 22:36:12 UTC
Created attachment 50988 [details]
Screenshot showing this problem
Comment 4 james tappin 2010-08-27 23:43:10 UTC
If it's any help in tracking down the issue, 4.3.x worked correctly, 4.4.x and 4.5.x show the truncated menu.
Comment 5 Christoph Feck 2010-08-31 00:54:11 UTC
The profile combo is moved above the slider in KDE SC 4.5.1. Still there is the issue when you have more than four profiles. If everything goes well, another workaround for that bug will land into release 4.5.2.

*** This bug has been marked as a duplicate of bug 219873 ***