개정판 57742fb4
issue #000: arrange code
Change-Id: I1ed302f2f7a79bf638d173ec87c3ba27186e93ba
DTI_PID/DTI_PID/Shapes/EngineeringTextItem.py | ||
---|---|---|
198 | 198 |
@date 2018.07.08 |
199 | 199 |
''' |
200 | 200 |
def paint(self, painter, options=None, widget=None): |
201 |
from EngineeringLineNoTextItem import QEngineeringLineNoTextItem |
|
202 | 201 |
self.setColor(self.getColor()) |
203 | 202 |
|
204 | 203 |
if self.angle == 1.57 or self.angle == 4.71: |
... | ... | |
213 | 212 |
painter.drawText(rect, Qt.AlignCenter, self.text()) |
214 | 213 |
|
215 | 214 |
if self.isSelected(): |
215 |
from EngineeringLineNoTextItem import QEngineeringLineNoTextItem |
|
216 | 216 |
self.drawFocusRect(painter) |
217 |
|
|
218 |
if type(self) is QEngineeringLineNoTextItem and self.isSelected(): |
|
219 |
for run in self.runs: |
|
220 |
for item in run.items: |
|
221 |
item.setSelected(True) |
|
222 |
#elif type(self) is QEngineeringLineNoTextItem: |
|
223 |
# for run in self.runs: |
|
224 |
# for item in run.items: |
|
225 |
# item.setSelected(False) |
|
217 |
if type(self) is QEngineeringLineNoTextItem: |
|
218 |
for run in self.runs: |
|
219 |
for item in run.items: |
|
220 |
item.setSelected(True) |
|
226 | 221 |
|
227 | 222 |
''' |
228 | 223 |
@brief Delete text item |
내보내기 Unified diff