276 |
276 |
277 @param action reference to the action that was triggered (QAction) |
277 @param action reference to the action that was triggered (QAction) |
278 """ |
278 """ |
279 idx = self.index(action) |
279 idx = self.index(action) |
280 if idx.isValid(): |
280 if idx.isValid(): |
|
281 self._keyboardModifiers = QApplication.keyboardModifiers() |
281 self.activated[QModelIndex].emit(idx) |
282 self.activated[QModelIndex].emit(idx) |
282 |
283 |
283 def index(self, action): |
284 def index(self, action): |
284 """ |
285 """ |
285 Public method to get the index of an action. |
286 Public method to get the index of an action. |