Differential D11076 Diff 29035 plugins/python/comics_project_management_tools/comics_project_manager_docker.py
Changeset View
Changeset View
Standalone View
Standalone View
plugins/python/comics_project_management_tools/comics_project_manager_docker.py
Context not available. | |||||
748 | doc.close() | 748 | doc.close() | ||
---|---|---|---|---|---|
749 | 749 | | |||
750 | def slot_show_page_viewer(self): | 750 | def slot_show_page_viewer(self): | ||
751 | index = self.comicPageList.currentIndex() | 751 | index = int(self.comicPageList.currentIndex().row()) | ||
752 | if index.column() is not 0: | 752 | self.page_viewer_dialog.load_comic(self.path_to_config) | ||
753 | index = self.pagesModel.index(index.row(), 0) | 753 | self.page_viewer_dialog.go_to_page_index(index) | ||
754 | # Get the absolute url from the relative one in the pages model. | 754 | self.page_viewer_dialog.show() | ||
755 | absoluteUrl = os.path.join(self.projecturl, str(self.pagesModel.data(index, role=Qt.ToolTipRole))) | 755 | | ||
756 | | ||||
757 | # Make sure the page exists. | | |||
758 | if os.path.exists(absoluteUrl): | | |||
759 | page = zipfile.ZipFile(absoluteUrl, "r") | | |||
760 | image = QImage.fromData(page.read("mergedimage.png")) | | |||
761 | self.page_viewer_dialog.update_image(image) | | |||
762 | self.page_viewer_dialog.show() | | |||
763 | page.close() | | |||
764 | """ | 756 | """ | ||
765 | Function to copy the current project location into the clipboard. | 757 | Function to copy the current project location into the clipboard. | ||
766 | This is useful for users because they'll be able to use that url to quickly | 758 | This is useful for users because they'll be able to use that url to quickly | ||
Context not available. |