qt5/src/poppler-annotation.cc |    2 ++
 qt6/src/poppler-annotation.cc |    2 ++
 2 files changed, 4 insertions(+)

New commits:
commit 1c1553142de667a10949ac17d9f9f609f1a23832
Author: Albert Astals Cid <aa...@kde.org>
Date:   Thu Mar 3 17:30:15 2022 +0100

    qt: Add qWarnings for non supported scenarios

diff --git a/qt5/src/poppler-annotation.cc b/qt5/src/poppler-annotation.cc
index c7607b88..5f563ca4 100644
--- a/qt5/src/poppler-annotation.cc
+++ b/qt5/src/poppler-annotation.cc
@@ -2032,6 +2032,7 @@ void TextAnnotation::setTextType(TextAnnotation::TextType 
type)
     }
 
     // Type cannot be changed if annotation is already tied
+    qWarning() << "You can't change the type of a TextAnnotation that is 
already in a page";
 }
 
 QString TextAnnotation::textIcon() const
@@ -2453,6 +2454,7 @@ void LineAnnotation::setLineType(LineAnnotation::LineType 
type)
     }
 
     // Type cannot be changed if annotation is already tied
+    qWarning() << "You can't change the type of a LineAnnotation that is 
already in a page";
 }
 
 QLinkedList<QPointF> LineAnnotation::linePoints() const
diff --git a/qt6/src/poppler-annotation.cc b/qt6/src/poppler-annotation.cc
index 3ee4a83c..1b9aa344 100644
--- a/qt6/src/poppler-annotation.cc
+++ b/qt6/src/poppler-annotation.cc
@@ -1603,6 +1603,7 @@ void TextAnnotation::setTextType(TextAnnotation::TextType 
type)
     }
 
     // Type cannot be changed if annotation is already tied
+    qWarning() << "You can't change the type of a TextAnnotation that is 
already in a page";
 }
 
 QString TextAnnotation::textIcon() const
@@ -1953,6 +1954,7 @@ void LineAnnotation::setLineType(LineAnnotation::LineType 
type)
     }
 
     // Type cannot be changed if annotation is already tied
+    qWarning() << "You can't change the type of a LineAnnotation that is 
already in a page";
 }
 
 QVector<QPointF> LineAnnotation::linePoints() const

Reply via email to