개정판 1018a498
validate
Change-Id: I81fcd56164315fae501c4ead1516d745f2a7dc35
DTI_PID/DTI_PID/Commands/HighlightCommand.py | ||
---|---|---|
138 | 138 |
param.parent.setSelected(True) |
139 | 139 |
param.parent.update() |
140 | 140 |
for item in param.items: |
141 |
item.setSelected(True) |
|
142 |
item.update() |
|
141 |
if item: |
|
142 |
item.setSelected(True) |
|
143 |
item.update() |
|
143 | 144 |
else: |
144 | 145 |
rect = param.sceneBoundingRect() |
145 | 146 |
self.imageViewer.centerOn(rect.center()) |
DTI_PID/DTI_PID/Shapes/EngineeringLineItem.py | ||
---|---|---|
1257 | 1257 |
error.setToolTip(error.msg) |
1258 | 1258 |
error.area = 'Drawing' |
1259 | 1259 |
error.name = 'Error' |
1260 |
error.items = [ connector.connectedItem ] |
|
1260 | 1261 |
errors.append(error) |
1261 | 1262 |
# check connection position |
1262 | 1263 |
elif not self.isOverlap(connector.sceneBoundingRect(), matches[0].sceneBoundingRect()): |
... | ... | |
1267 | 1268 |
error.setToolTip(error.msg) |
1268 | 1269 |
error.area = 'Drawing' |
1269 | 1270 |
error.name = 'Error' |
1271 |
error.items = [ connector.connectedItem ] |
|
1270 | 1272 |
errors.append(error) |
1271 | 1273 |
|
1272 | 1274 |
elif issubclass(type(connector.connectedItem), QEngineeringLineItem): |
... | ... | |
1289 | 1291 |
error.setToolTip(error.msg) |
1290 | 1292 |
error.area = 'Drawing' |
1291 | 1293 |
error.name = 'Error' |
1294 |
error.items = [ connector.connectedItem ] |
|
1292 | 1295 |
errors.append(error) |
1293 | 1296 |
|
1294 | 1297 |
if indices[0] == indices[1]: |
... | ... | |
1354 | 1357 |
error.setToolTip(error.msg) |
1355 | 1358 |
error.area = 'Drawing' |
1356 | 1359 |
error.name = 'Error' |
1360 |
error.items = [ line ] |
|
1357 | 1361 |
errors.append(error) |
1358 | 1362 |
|
1359 | 1363 |
except Exception as ex: |
DTI_PID/DTI_PID/Shapes/EngineeringSpecBreakItem.py | ||
---|---|---|
197 | 197 |
error.setToolTip(error.msg) |
198 | 198 |
error.area = 'Drawing' |
199 | 199 |
error.name = 'Error' |
200 |
error.items = [ up_stream_item[0], down_stream_item[0] ] |
|
200 | 201 |
errors.append(error) |
201 | 202 |
|
202 | 203 |
# set error position |
DTI_PID/DTI_PID/Shapes/EngineeringTextItem.py | ||
---|---|---|
211 | 211 |
error.setToolTip(error.msg) |
212 | 212 |
error.area = self.area |
213 | 213 |
error.name = 'Error' |
214 |
error.items = [ text ] |
|
214 | 215 |
errors.append(error) |
215 | 216 |
|
216 | 217 |
error.setPosition([self.sceneBoundingRect().center().x(), self.sceneBoundingRect().center().y()]) |
내보내기 Unified diff