aboutsummaryrefslogtreecommitdiffstats
path: root/Lib/defconQt/fontView.py
diff options
context:
space:
mode:
authorAdrien Tétar2015-05-04 22:37:24 +0200
committerAdrien Tétar2015-05-04 22:37:24 +0200
commit64b9388cc4d480fbc8ab87b889e7632c1040a048 (patch)
treece5bd9d481ace204a6870a76e4eec424ea552f3b /Lib/defconQt/fontView.py
parent2cb4fead2e5af288eac686b182ba5d1ad17ae540 (diff)
downloadtrufont-64b9388cc4d480fbc8ab87b889e7632c1040a048.tar.bz2
More
Diffstat (limited to 'Lib/defconQt/fontView.py')
-rw-r--r--Lib/defconQt/fontView.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/Lib/defconQt/fontView.py b/Lib/defconQt/fontView.py
index b17dc52..61e7792 100644
--- a/Lib/defconQt/fontView.py
+++ b/Lib/defconQt/fontView.py
@@ -119,6 +119,9 @@ class CharacterWidget(QWidget):
endRow = redrawRect.bottom() // self.squareSize
beginColumn = redrawRect.left() // self.squareSize
endColumn = redrawRect.right() // self.squareSize
+
+ painter.drawLine(redrawRect.left(), redrawRect.top(), redrawRect.left(), redrawRect.bottom())
+ painter.drawLine(0, 0, redrawRect.right(), 0)
# selection code
firstKey = min(self.lastKey, self.moveKey)
@@ -134,9 +137,10 @@ class CharacterWidget(QWidget):
key = row * self.columns + column
if key > len(self.glyphs)-1: break
- painter.drawRect(column * self.squareSize,
- row * self.squareSize, self.squareSize,
- self.squareSize)
+ rightEdgeX = column * self.squareSize + self.squareSize
+ bottomEdgeY = row * self.squareSize + self.squareSize
+ painter.drawLine(rightEdgeX, row * self.squareSize + 1, rightEdgeX, bottomEdgeY)
+ painter.drawLine(rightEdgeX, bottomEdgeY, column * self.squareSize + 1, bottomEdgeY)
# selection code
if key == firstKey: