145 """ |
145 """ |
146 if not self.__tocWidget.indexAt(pos).isValid(): |
146 if not self.__tocWidget.indexAt(pos).isValid(): |
147 return |
147 return |
148 |
148 |
149 menu = QMenu() |
149 menu = QMenu() |
150 curTab = menu.addAction(self.trUtf8("Open Link")) |
150 curTab = menu.addAction(self.tr("Open Link")) |
151 newTab = menu.addAction(self.trUtf8("Open Link in New Tab")) |
151 newTab = menu.addAction(self.tr("Open Link in New Tab")) |
152 menu.move(self.__tocWidget.mapToGlobal(pos)) |
152 menu.move(self.__tocWidget.mapToGlobal(pos)) |
153 |
153 |
154 model = self.__tocWidget.model() |
154 model = self.__tocWidget.model() |
155 itm = model.contentItemAt(self.__tocWidget.currentIndex()) |
155 itm = model.contentItemAt(self.__tocWidget.currentIndex()) |
156 |
156 |