Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
CPMT: Fix some warnings when exporting a comic.
Wolthera van Hövell tot Westerflier4a1adb7bc916
diff --git a/plugins/python/comics_project_management_tools/comics_export_dialog.py b/plugins/python/comics_project_management_tools/comics_export_dialog.pyindex d05900aad8..d0a8430b1a 100644--- a/plugins/python/comics_project_management_tools/comics_export_dialog.py+++ b/plugins/python/comics_project_management_tools/comics_export_dialog.py@@ -167,7 +167,7 @@ class labelSelector(QComboBox):for i in listOfIndexes:index = self.itemModel.index(i, 0)item = self.itemModel.itemFromIndex(index)- item.setCheckState(True)+ item.setCheckState(Qt.CheckState.Checked)"""Little Enum to keep track of where in the item we add styles.diff --git a/plugins/python/comics_project_management_tools/comics_exporter.py b/plugins/python/comics_project_management_tools/comics_exporter.pyindex b50bb946d2..757aa7a55d 100644--- a/plugins/python/comics_project_management_tools/comics_exporter.py+++ b/plugins/python/comics_project_management_tools/comics_exporter.py@@ -286,12 +286,12 @@ class comicsExporter():# Crop. Cropping per guide only happens if said guides have been found.if w["Crop"] is True:listHGuides = []- listHGuides = page.horizontalGuides()+ listHGuides = page.guidesConfig().horizontalGuides()listHGuides.sort()for i in range(len(listHGuides) - 1, 0, -1):if listHGuides[i] < 0 or listHGuides[i] > page.height():listHGuides.pop(i)- listVGuides = page.verticalGuides()+ listVGuides = page.guidesConfig().verticalGuides()listVGuides.sort()for i in range(len(listVGuides) - 1, 0, -1):if listVGuides[i] < 0 or listVGuides[i] > page.width():