개정판 d92b873c
issue #506: add copy horizontal button
Change-Id: I088846ed3f5ae0045a8035e70a259fb5028baf04
DTI_PID/DTI_PID/Shapes/EngineeringTextItem.py | ||
---|---|---|
290 | 290 | |
291 | 291 |
self.setColor(self.getColor()) |
292 | 292 | |
293 |
if self.angle == 1.57 or self.angle == 4.71: |
|
294 |
rect = QRectF(0, 0, self.size[1], self.size[0]) |
|
295 |
else: |
|
296 |
rect = QRectF(0, 0, self.size[0], self.size[1]) |
|
293 |
#if self.angle == 1.57 or self.angle == 4.71:
|
|
294 |
# rect = QRectF(0, 0, self.size[1], self.size[0])
|
|
295 |
#else:
|
|
296 |
# rect = QRectF(0, 0, self.size[0], self.size[1])
|
|
297 | 297 | |
298 | 298 |
painter.setFont(self.font()) |
299 | 299 |
color = self.defaultTextColor() |
내보내기 Unified diff