[graphics/krita/krita/6.0] plugins/python/comics_project_management_tools: CPMT: Fix some warnings when exporting a comic.

Wolthera van Hövell tot Westerflier <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 7f946bdea2e0aa10ff604f9bac5454d0f4fa5f7f by Wolthera van Hövell tot Westerflier.
Committed on 06/08/2026 at 13:30.
Pushed by woltherav into branch 'krita/6.0'.

CPMT: Fix some warnings when exporting a comic.

Also fix a checkstate.

M  +1    -1    plugins/python/comics_project_management_tools/comics_export_dialog.py
M  +2    -2    plugins/python/comics_project_management_tools/comics_exporter.py

https://invent.kde.org/graphics/krita/-/commit/7f946bdea2e0aa10ff604f9bac5454d0f4fa5f7f

diff --git a/plugins/python/comics_project_management_tools/comics_export_dialog.py b/plugins/python/comics_project_management_tools/comics_export_dialog.py
index d05900aad89..d0a8430b1aa 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.py
index b50bb946d2e..757aa7a55da 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():
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.