개정판 17111ffd
선택한 GraphicsItem이 삭제되었을 때 Highlight 를 Scene에서 제거
DTI_PID/DTI_PID/QResultTreeWidget.py | ||
---|---|---|
355 | 355 |
@brief remove given item |
356 | 356 |
@author humkyung |
357 | 357 |
@date 2018.04.23 |
358 |
@history 2018.05.25 Jeongwoo Remove Highlighting when item removed |
|
358 | 359 |
''' |
359 | 360 |
@pyqtSlot(QGraphicsItem) |
360 | 361 |
def itemRemoved(self, item): |
361 | 362 |
foundItem = self.findItemByData(item) |
362 | 363 |
if foundItem is not None: |
363 |
foundItem.parent().removeChild(foundItem) |
|
364 |
foundItem.parent().removeChild(foundItem) |
|
365 |
if self.lastClickedItem is not None: |
|
366 |
self.scene.removeItem(self.lastClickedItem) |
내보내기 Unified diff