128 |
128 |
129 @param pos position the context menu shall be shown (QPoint) |
129 @param pos position the context menu shall be shown (QPoint) |
130 """ |
130 """ |
131 act = self.actionAt(pos) |
131 act = self.actionAt(pos) |
132 |
132 |
133 if act is not None and act.menu() is None and self.index(act).isValid(): |
133 if act is not None and \ |
|
134 act.menu() is None and \ |
|
135 self.index(act).isValid(): |
134 menu = QMenu() |
136 menu = QMenu() |
135 v = act.data() |
137 v = act.data() |
136 |
138 |
137 menuAction = menu.addAction( |
139 menuAction = menu.addAction( |
138 self.trUtf8("&Open"), self.__openBookmark) |
140 self.trUtf8("&Open"), self.__openBookmark) |