82 menu = QMenu() |
82 menu = QMenu() |
83 idx = self.historyTree.indexAt(pos) |
83 idx = self.historyTree.indexAt(pos) |
84 idx = idx.sibling(idx.row(), 0) |
84 idx = idx.sibling(idx.row(), 0) |
85 if idx.isValid() and not self.historyTree.model().hasChildren(idx): |
85 if idx.isValid() and not self.historyTree.model().hasChildren(idx): |
86 menu.addAction( |
86 menu.addAction( |
87 self.trUtf8("&Open"), self.__openHistoryInCurrentTab) |
87 self.tr("&Open"), self.__openHistoryInCurrentTab) |
88 menu.addAction( |
88 menu.addAction( |
89 self.trUtf8("Open in New &Tab"), self.__openHistoryInNewTab) |
89 self.tr("Open in New &Tab"), self.__openHistoryInNewTab) |
90 menu.addSeparator() |
90 menu.addSeparator() |
91 menu.addAction(self.trUtf8("&Copy"), self.__copyHistory) |
91 menu.addAction(self.tr("&Copy"), self.__copyHistory) |
92 menu.addAction(self.trUtf8("&Remove"), self.historyTree.removeSelected) |
92 menu.addAction(self.tr("&Remove"), self.historyTree.removeSelected) |
93 menu.exec_(QCursor.pos()) |
93 menu.exec_(QCursor.pos()) |
94 |
94 |
95 def __activated(self, idx): |
95 def __activated(self, idx): |
96 """ |
96 """ |
97 Private slot to handle the activation of an entry. |
97 Private slot to handle the activation of an entry. |