[poppler] qt4/src

Albert Astals Cid aacid at kemper.freedesktop.org
Fri Aug 1 13:21:25 PDT 2008


 qt4/src/poppler-fontinfo.cc |    5 +++++
 qt4/src/poppler-private.h   |    7 +++++++
 qt4/src/poppler-qt4.h       |    5 +++++
 3 files changed, 17 insertions(+)

New commits:
commit 96392667d1331d2f8750f27c116e34bbf9282dca
Author: Albert Astals Cid <aacid at kde.org>
Date:   Fri Aug 1 22:20:55 2008 +0200

    Provide a default constructor for FontInfo so you can use it as metatype for qvariant

diff --git a/qt4/src/poppler-fontinfo.cc b/qt4/src/poppler-fontinfo.cc
index 8b1ca38..b87f386 100644
--- a/qt4/src/poppler-fontinfo.cc
+++ b/qt4/src/poppler-fontinfo.cc
@@ -22,6 +22,11 @@
 
 namespace Poppler {
 
+FontInfo::FontInfo()
+{
+	m_data = new FontInfoData();
+}
+
 FontInfo::FontInfo( const FontInfoData &fid )
 {
 	m_data = new FontInfoData(fid);
diff --git a/qt4/src/poppler-private.h b/qt4/src/poppler-private.h
index b412435..7b5ab1c 100644
--- a/qt4/src/poppler-private.h
+++ b/qt4/src/poppler-private.h
@@ -266,6 +266,13 @@ namespace Poppler {
     class FontInfoData
     {
 	public:
+		FontInfoData()
+		{
+			isEmbedded = false;
+			isSubset = false;
+			type = FontInfo::unknown;
+		}
+		
 		FontInfoData( const FontInfoData &fid )
 		{
 			fontName = fid.fontName;
diff --git a/qt4/src/poppler-qt4.h b/qt4/src/poppler-qt4.h
index 0a278bc..26c7fa9 100644
--- a/qt4/src/poppler-qt4.h
+++ b/qt4/src/poppler-qt4.h
@@ -139,6 +139,11 @@ namespace Poppler {
 	/**
 	   Create a new font information container.
 	*/
+	FontInfo();
+	
+	/**
+	   Create a new font information container.
+	*/
 	FontInfo( const FontInfoData &fid );
 	/// \endcond
 	


More information about the poppler mailing list