Use GlyphEdit.text instead of GlyphEdit itself as focusProxy for the page view.

This commit is contained in:
Andrey Golovizin 2014-09-19 22:53:05 +02:00
parent 126090a572
commit f73c87a7ff

View file

@ -63,7 +63,7 @@ class MainWindow(QMainWindow):
document.ui.pageChanged.connect(self.pageScene.setPage)
document.ui.pageChanged.connect(self.showPageTitle)
document.ui.unknownGlyph.connect(self.unknownGlyph)
self.page.setFocusProxy(self.glyphEdit)
self.page.setFocusProxy(self.glyphEdit.text)
layout = QVBoxLayout(centralWidget)
layout.setSpacing(0)