Skip to content

Commit

Permalink
Merge pull request #279 from NaturalHistoryMuseum/feature/203-resize-…
Browse files Browse the repository at this point in the history
…handles-size

[#203] resize handles constant size regardless of zoom
  • Loading branch information
quicklizard99 committed Apr 18, 2016
2 parents 2022972 + f3173fa commit 119c507
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ This is an overview of major changes. Refer to the git repository for a full log

Version 0.1.28
-------------
- Fixed #203 - Resize handles should have constant size regardless of zoom

Version 0.1.27
-------------
Expand Down
3 changes: 2 additions & 1 deletion inselect/gui/views/boxes/box_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ def _create_handle(self, corner):
# Creates and returns a new ResizeHandle at the given Qt.Corner
handle = ResizeHandle(corner, self)
handle.setVisible(False)
handle.setFlags(QGraphicsItem.ItemStacksBehindParent)
handle.setFlags(QGraphicsItem.ItemStacksBehindParent |
QGraphicsItem.ItemIgnoresTransformations)
return handle

def _layout_handles(self):
Expand Down
2 changes: 1 addition & 1 deletion inselect/gui/views/boxes/resize_handle.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def relayout(self, rect):
def boundingRect(self):
"""QGraphicsItem virtual
"""
size = 25 # Local coordinate units
size = 20 # Local coordinate units
return QRectF(-size/2, -size/2, size, size)

def mousePressEvent(self, event):
Expand Down

0 comments on commit 119c507

Please sign in to comment.