Review Request: fix layout, resize for pager plasmoid

Xuetian Weng wengxt at gmail.com
Thu Jan 10 17:54:54 UTC 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/108329/
-----------------------------------------------------------

Review request for Plasma and Luís Gabriel Lima.


Description
-------

1. remove some setMinimumSize. setMinimumSize to preferedSize will cause the minimumSize to be the size after plasma launches, which means if you put pager on desktop, it cannot be resize to smaller one.
2. add layout->activate to trigger rearrange immediately after updateSizes, this will fix some case that DeclarativeWidget initial size/position problem.
3. remove some duplicated code
4. fix window position.
|-----------|
||---------||
||         ||
||---------||
|-----------|

Pager have 1 pixel clip rect out size the region, so this add this 1 pixel to size calculation, and the child repeater window rect will calculate position based on that, which means the x and y of window should minus 1.


Diffs
-----

  plasma/desktop/applets/pager/package/contents/ui/main.qml c3cee23 
  plasma/desktop/applets/pager/pager.cpp a3c4277 

Diff: http://git.reviewboard.kde.org/r/108329/diff/


Testing
-------

all problem mentioned are resolved.


Thanks,

Xuetian Weng

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20130110/2f693a5d/attachment-0001.html>


More information about the Plasma-devel mailing list