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