개정판 b1a6ec37
add show owner
Change-Id: I94e5481328d935d426a2317c9f522e0f785bcbec
DTI_PID/DTI_PID/Shapes/EngineeringLineItem.py | ||
---|---|---|
2062 | 2062 |
if len(items) > 0 and self in items: |
2063 | 2063 |
menu = QMenu() |
2064 | 2064 |
|
2065 |
showAction = QAction('Show Onwer', None) |
|
2066 |
showAction.triggered.connect(self.contextShow) |
|
2067 |
menu.addAction(showAction) |
|
2068 |
|
|
2065 | 2069 |
mergeAction = QAction('Merge(M)', None) |
2066 | 2070 |
mergeAction.triggered.connect(self.contextMerge) |
2067 | 2071 |
menu.addAction(mergeAction) |
... | ... | |
2080 | 2084 |
|
2081 | 2085 |
menu.exec_(event.screenPos()) |
2082 | 2086 |
|
2087 |
def contextShow(self): |
|
2088 |
from EngineeringLineNoTextItem import QEngineeringLineNoTextItem |
|
2089 |
|
|
2090 |
if type(self.owner) is QEngineeringLineNoTextItem: |
|
2091 |
self.owner.contextHighlight(self.owner) |
|
2092 |
|
|
2083 | 2093 |
def contextDelete(self): |
2084 | 2094 |
event = QKeyEvent(QEvent.KeyPress, Qt.Key_Delete, Qt.NoModifier) |
2085 | 2095 |
self.scene().keyPressEvent(event) |
DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py | ||
---|---|---|
1146 | 1146 |
if len(items) == 1 and self in items: |
1147 | 1147 |
menu = QMenu() |
1148 | 1148 |
|
1149 |
showAction = QAction('Show Onwer', None) |
|
1150 |
showAction.triggered.connect(self.contextShow) |
|
1151 |
menu.addAction(showAction) |
|
1152 |
|
|
1149 | 1153 |
if type(self) != QEngineeringSpecBreakItem: |
1150 | 1154 |
bindAction = QAction('Bind(B)', None) |
1151 | 1155 |
bindAction.triggered.connect(self.contextBind) |
... | ... | |
1173 | 1177 |
|
1174 | 1178 |
menu.exec_(event.screenPos()) |
1175 | 1179 |
|
1180 |
def contextShow(self): |
|
1181 |
from EngineeringLineNoTextItem import QEngineeringLineNoTextItem |
|
1182 |
|
|
1183 |
if type(self.owner) is QEngineeringLineNoTextItem: |
|
1184 |
self.owner.contextHighlight(self.owner) |
|
1185 |
|
|
1176 | 1186 |
def contextDelete(self): |
1177 | 1187 |
event = QKeyEvent(QEvent.KeyPress, Qt.Key_Delete, Qt.NoModifier) |
1178 | 1188 |
self.scene().keyPressEvent(event) |
DTI_PID/DTI_PID/americano.qss | ||
---|---|---|
68 | 68 |
|
69 | 69 |
QWidget:disabled |
70 | 70 |
{ |
71 |
color: #525252;
|
|
71 |
color: #080808;
|
|
72 | 72 |
background-color: #4f4e4e; |
73 | 73 |
} |
74 | 74 |
|
내보내기 Unified diff