Scroll to highlighted glyphs.
This commit is contained in:
parent
ae20b22229
commit
6d824a46d6
1 changed files with 1 additions and 0 deletions
|
|
@ -93,6 +93,7 @@ class PageScene(QGraphicsScene):
|
|||
|
||||
def highlightGlyph(self, glyph):
|
||||
rect = self.addRect(glyph.x - 1, glyph.y - 1, glyph.width + 1, glyph.height + 1, self.glyphPen, self.glyphBrush)
|
||||
rect.ensureVisible()
|
||||
self.highlightedGlyphs[glyph] = rect
|
||||
|
||||
def clearHighlight(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue