Bug 345787

Summary: [desktop toolbox] toolbox dialog have inconsistent positioning on different corners
Product: [Plasma] plasmashell Reporter: Bhushan Shah <bhush94>
Component: generalAssignee: Kai Uwe Broulik <kde>
Severity: normal CC: bhush94, plasma-bugs, simonandric5
Priority: NOR    
Version: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Bhushan Shah 2015-04-02 04:08:44 UTC
In the left top corner dialog have no space between left edge and screen edge while on right side it have space between right edge and screen edge. Also sometimes that dialog covers the desktop toolbox itself. This is very inconsistent with previous non-dialog toolbox behavior.
Comment 1 Marco Martin 2015-04-10 13:03:19 UTC
Git commit 6dfc6e38dd671b45cf8c6d84bae1fdd555cac407 by Marco Martin.
Committed on 02/04/2015 at 13:59.
Pushed by gerrit into branch 'master'.

Consider visualParent rotation in popupPosition

if there are transforms in the scene, to correctly compute the position the
transform is needed to be accounter for.
QQuickITem::mapRectToScene does consider tranforms.
this adresses bug 345787 where the toolbox may be rotated.
Change-Id: I13a5509d95a7498382155abf3c3d195708de56a6

M  +9    -5    src/plasmaquick/dialog.cpp
A  +93   -0    tests/dialog_positioning_parentrotated.qml     [License: GPL (v2+)]