aboutsummaryrefslogtreecommitdiffstats
path: root/Lib/defconQt/glyphView.py
diff options
context:
space:
mode:
authorAdrien Tétar2015-07-01 10:13:38 +0200
committerAdrien Tétar2015-07-01 10:13:38 +0200
commit2cb5646c5c49258398ad346bd1a975c6b9c79bd6 (patch)
treea66794ab0e9a5b532239c8e9d7a8548344de67d9 /Lib/defconQt/glyphView.py
parentf61fceb21c8d4657f9394517cf6fb65523161e47 (diff)
downloadtrufont-2cb5646c5c49258398ad346bd1a975c6b9c79bd6.tar.bz2
spaceCenter: show active letter bbox, allow opening glyphView, showMetrics, verticalFlip, proportional scrolling, enforce int spacing values in the widget, nits
Diffstat (limited to 'Lib/defconQt/glyphView.py')
-rw-r--r--Lib/defconQt/glyphView.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/defconQt/glyphView.py b/Lib/defconQt/glyphView.py
index f8b6303..728c677 100644
--- a/Lib/defconQt/glyphView.py
+++ b/Lib/defconQt/glyphView.py
@@ -82,8 +82,8 @@ class MainGfxWindow(QMainWindow):
self.view._glyph.removeObserver(self, "Glyph.Changed")
super(GlyphView, self).close()
- def _glyphChanged(self, event):
- self.view._glyphChanged(event)
+ def _glyphChanged(self, notification):
+ self.view._glyphChanged(notification)
def setRenderer(self, action):
if action == self.nativeAction:
@@ -163,7 +163,6 @@ class OffCurvePointItem(QGraphicsEllipseItem):
value.setY(copysign(avg, value.y()))
else:
value.setY(0)
- elif change == QGraphicsItem.ItemPositionHasChanged:
self.parentItem()._CPMoved(value)
return value
@@ -734,7 +733,7 @@ class GlyphView(QGraphicsView):
#self.scale(sc, sc);
#self.scene().setSceneRect(-1000, -1000, 3000, 3000)
- def _glyphChanged(self, event):
+ def _glyphChanged(self, notification):
path = self._glyph.getRepresentation("defconQt.NoComponentsQPainterPath")
self.scene()._outlineItem.setPath(path)
self.scene()._outlineItem.update()