Commit graph

13 commits

Author SHA1 Message Date
Rebecca Breu
e88bdb5910 Add basic unittests for __main__ 2021-04-13 17:39:38 +02:00
Rebecca Breu
27813f5bd8 Add Flip action to menu 2021-04-11 17:25:56 +02:00
Rebecca Breu
4e31ec8bac Add flip 2021-04-10 19:35:47 +02:00
Rebecca Breu
55819bf4c4 Add snapping for rotating 2021-04-06 16:19:02 +02:00
Rebecca Breu
829d0d19fc Fix scale handle cursor shapes for rotated items 2021-04-06 11:23:42 +02:00
Rebecca Breu
a34231cd7d Fix scaling for rotated items 2021-04-06 10:13:25 +02:00
Rebecca Breu
d58b46b08f Add rotation 2021-04-05 19:07:31 +02:00
Rebecca Breu
8204d3141f Add rotate cursor 2021-04-05 14:45:18 +02:00
Rebecca Breu
1ff957bca4 Add hover areas for rotating items 2021-04-04 22:10:07 +02:00
Rebecca Breu
476c061071 Minor fixes for rubberband selection
Changed item shape so that it doesn't include handles during multi selection. This gives a more accurate behaviour for getting items out of the rubberband selection (except for the last remaining item, oh well).
2021-04-04 16:23:56 +02:00
Rebecca Breu
37a01f80a2 Add rubberband selection.
There's a slight inaccuracy when getting an already selected item outside of the rubberband: the additional margin of the selection handles needs to be outside of the rubberband too (since it's part of the item's bounding box), making it slightly harder to get an item out of the selection than it should be.

Let's see if it's very noticeable/annoying in practice.
2021-04-04 12:15:23 +02:00
Rebecca Breu
5c4b23518e Minor refactoring (use QPointF everywhere instead of tuples) 2021-04-03 17:08:52 +02:00
Rebecca Breu
165283d56c Unittests for multi selections 2021-04-03 16:53:19 +02:00