Helpviewer/Bookmarks/BookmarksMenu.py

changeset 3003
cb43c34239b1
parent 3002
6ffc581f00f1
child 3034
7ce719013078
child 3057
10516539f238
equal deleted inserted replaced
3002:6ffc581f00f1 3003:cb43c34239b1
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)

eric ide

mercurial