[graphics/krita/krita/6.0] plugins/python/comics_project_management_tools: CPMT: recover frames and text export.

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

CPMT: recover frames and text export.

M  +10   -2    plugins/python/comics_project_management_tools/comics_exporter.py
M  +1    -1    plugins/python/comics_project_management_tools/exporters/CPMT_ACBF_XML_Exporter.py
M  +1    -1    plugins/python/comics_project_management_tools/exporters/CPMT_EPUB_exporter.py

https://invent.kde.org/graphics/krita/-/commit/bf62583e2c4ef6ad4931c794849d25e57bc8465c

diff --git a/plugins/python/comics_project_management_tools/comics_exporter.py b/plugins/python/comics_project_management_tools/comics_exporter.py
index 757aa7a55da..32e94014597 100644
--- a/plugins/python/comics_project_management_tools/comics_exporter.py
+++ b/plugins/python/comics_project_management_tools/comics_exporter.py
@@ -418,11 +418,19 @@ class comicsExporter():
     """
 
     def handleShapeDescription(self, shape, list, textOnly=False):
+        if (shape.type() != "KoSvgTextShapeID" and textOnly is True):
+            return
+        shapeDesc = {}
+        shapeDesc["name"] = shape.name()
+        rect = shape.boundingBox()
+        listOfPoints = [rect.topLeft(), rect.topRight(), rect.bottomRight(), rect.bottomLeft()]
+        shapeDesc["boundingBox"] = listOfPoints
+        if (shape.type() == "KoSvgTextShapeID" and textOnly is True):
+            shapeDesc["text"] = shape.toSvg()
+        list.append(shapeDesc)
         return
         # Turn off shape retrieval for now until the new text tool is finished.
         r"""
-        if (shape.type() != "KoSvgTextShapeID" and textOnly is True):
-            return
         shapeDesc = {}
         shapeDesc["name"] = shape.name()
         rect = shape.boundingBox()
diff --git a/plugins/python/comics_project_management_tools/exporters/CPMT_ACBF_XML_Exporter.py b/plugins/python/comics_project_management_tools/exporters/CPMT_ACBF_XML_Exporter.py
index bbdab6dcba5..ee25c0d6120 100644
--- a/plugins/python/comics_project_management_tools/exporters/CPMT_ACBF_XML_Exporter.py
+++ b/plugins/python/comics_project_management_tools/exporters/CPMT_ACBF_XML_Exporter.py
@@ -282,7 +282,7 @@ def write_xml(configDictionary = {}, pageData = [],  pagesLocationList = [], loc
     if "publishingDate" in configDictionary.keys():
         publishingDate = document.createElement("publish-date")
         publishingDate.setAttribute("value", configDictionary["publishingDate"])
-        publishingDate.appendChild(document.createTextNode(QDate.fromString(configDictionary["publishingDate"], Qt.DateFormat.ISODate).toString(Qt.DateFormat.SystemLocaleLongDate)))
+        publishingDate.appendChild(document.createTextNode(QDate.fromString(configDictionary["publishingDate"], Qt.DateFormat.ISODate).toString(Qt.DateFormat.TextDate)))
         publisherInfo.appendChild(publishingDate)
     if "publisherCity" in configDictionary.keys():
         publishCity = document.createElement("city")
diff --git a/plugins/python/comics_project_management_tools/exporters/CPMT_EPUB_exporter.py b/plugins/python/comics_project_management_tools/exporters/CPMT_EPUB_exporter.py
index eda50672574..492f58d2587 100644
--- a/plugins/python/comics_project_management_tools/exporters/CPMT_EPUB_exporter.py
+++ b/plugins/python/comics_project_management_tools/exporters/CPMT_EPUB_exporter.py
@@ -144,7 +144,7 @@ def export(configDictionary = {}, projectURL = str(), pagesLocationList = [], pa
         transform = data["transform"]
         for v in data["vector"]:
             pointsList = []
-            dominantColor = QColor(Qt.white)
+            dominantColor = QColor(Qt.GlobalColor.white)
             listOfColors = []
             for point in v["boundingBox"]:
                 offset = QPointF(transform["offsetX"], transform["offsetY"])
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.