Move availableScreenRect/Region up to AppletInterface.
ClosedPublic

Authored by hein on Oct 4 2016, 12:34 PM.

Details

Summary

Tested with Folder View and Simple Menu, both use cases (desktop
containment margins, strut-aware dialog placement) addressed.

Diff Detail

Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
hein updated this revision to Diff 7084.Oct 4 2016, 12:34 PM
hein retitled this revision from to Move availableScreenRect/Region up to AppletInterface..
hein updated this object.
hein edited the test plan for this revision. (Show Details)
hein added reviewers: Plasma, mart.
hein added a subscriber: plasma-devel.
Restricted Application added a project: Plasma. · View Herald TranscriptOct 4 2016, 12:34 PM
mart accepted this revision.Oct 4 2016, 12:37 PM
mart edited edge metadata.
mart added inline comments.
src/scriptengines/qml/plasmoid/appletinterface.cpp
663

even if will never likely happen, just for completenesss, adding a check on corona existence here?

669

so could be removed from here

This revision is now accepted and ready to land.Oct 4 2016, 12:37 PM

This breaks Folder View in a spectacular way: icons overflow out of the applet, and even the title is displayed out of the frame. In some situations I've also seen icons "dancing" continuously (but always overflowing).

Reverting this commit fixes the issue completely.

hein added a comment.Oct 6 2016, 2:02 AM

Luca, can you give me more details? Which use case of Folder View, containment, desktop widget, panel widget? Screenshot? Multiscreen, single screen? I tested the FV/Desktop/single case and it's fine here.

I've seen this on both multi and single screen. FV placed on the desktop, BTW. Screenshot coming up soon (because I run with the patch reverted).

lbeltrame added a comment.EditedOct 6 2016, 4:55 AM

And this is a screenshot.

EDIT: For completeness sake, I'm running Qt 5.7 from branch, so something close to 5.7.1 (not yet out).

hein closed this revision.Feb 10 2017, 11:29 AM

Forgot to close.