diff options
| author | Adrien Tétar | 2015-10-30 10:01:43 +0100 |
|---|---|---|
| committer | Adrien Tétar | 2015-10-30 10:01:43 +0100 |
| commit | 77b6b0f9161dc909622ef99d311187150ddb1e8d (patch) | |
| tree | e2b779acd27db712c954b27e90eda2b38e08c6aa /Lib/defconQt | |
| parent | d7eb9410856fdf362764b020a9f48d392c65081e (diff) | |
| download | trufont-77b6b0f9161dc909622ef99d311187150ddb1e8d.tar.bz2 | |
meta: polishings
Diffstat (limited to 'Lib/defconQt')
| -rw-r--r-- | Lib/defconQt/fontView.py | 5 | ||||
| -rw-r--r-- | Lib/defconQt/metricsWindow.py | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Lib/defconQt/fontView.py b/Lib/defconQt/fontView.py index c7fdccf..c33f8c3 100644 --- a/Lib/defconQt/fontView.py +++ b/Lib/defconQt/fontView.py @@ -469,7 +469,7 @@ class SortDialog(QDialog): self.setWindowModality(Qt.WindowModal) self.setWindowTitle("Sort…") - self.smartSortBox = QRadioButton("Optimized sort", self) + self.smartSortBox = QRadioButton("Canned sort", self) self.smartSortBox.setToolTip("A combination of simple, complex and " "custom sorts that give optimized " "ordering results.") @@ -1114,7 +1114,8 @@ class MainWindow(QMainWindow): self.metricsWindow.show() else: self.metricsWindow.raise_() - # TODO: decouple + # TODO: default string kicks-in on the window before this. Figure out + # how to make a clean interface selection = self.collectionWidget.selection if selection: glyphs = [] diff --git a/Lib/defconQt/metricsWindow.py b/Lib/defconQt/metricsWindow.py index 27689ab..c62b40e 100644 --- a/Lib/defconQt/metricsWindow.py +++ b/Lib/defconQt/metricsWindow.py @@ -1,5 +1,5 @@ from defconQt import icons_db # noqa -from defconQt.glyphCollectionView import arrowKeys, cellSelectionColor +from defconQt.glyphCollectionView import cellSelectionColor from defconQt.glyphView import MainGfxWindow from defconQt.objects.defcon import TGlyph from getpass import getuser @@ -532,7 +532,7 @@ class GlyphsCanvas(QWidget): def keyPressEvent(self, event): key = event.key() - if key in arrowKeys: + if key in (Qt.Key_Left, Qt.Key_Right): self._arrowKeyPressEvent(event) else: super().keyPressEvent(event) @@ -576,7 +576,6 @@ class GlyphsCanvas(QWidget): self.update() # restore focus to ourselves, the table widget did take it when we # sent notification - # TODO: maybe not set focus on notifiee instead self.setFocus(Qt.MouseFocusReason) else: super(GlyphsCanvas, self).mousePressEvent(event) |
