270 act.triggered.connect(lambda: self.__copyAction(act)) |
270 act.triggered.connect(lambda: self.__copyAction(act)) |
271 menu.addSeparator() |
271 menu.addSeparator() |
272 act = menu.addAction(self.tr("Save Image")) |
272 act = menu.addAction(self.tr("Save Image")) |
273 act.setData(self.imagesTree.indexOfTopLevelItem(itm)) |
273 act.setData(self.imagesTree.indexOfTopLevelItem(itm)) |
274 act.triggered.connect(lambda: self.__saveImage(act)) |
274 act.triggered.connect(lambda: self.__saveImage(act)) |
275 menu.exec_(self.imagesTree.viewport().mapToGlobal(pos)) |
275 menu.exec(self.imagesTree.viewport().mapToGlobal(pos)) |
276 |
276 |
277 def __copyAction(self, act): |
277 def __copyAction(self, act): |
278 """ |
278 """ |
279 Private slot to copy the image URL or the image name to the clipboard. |
279 Private slot to copy the image URL or the image name to the clipboard. |
280 |
280 |