summaryrefslogtreecommitdiff
path: root/qt
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2005-12-04 11:30:00 +0000
committerAlbert Astals Cid <aacid@kde.org>2005-12-04 11:30:00 +0000
commitba4b3f88271892f197aa2ec076c80ff63a175887 (patch)
treedebd4b1640a2c02c5c4d8b6be7f51c6c873a0606 /qt
parente091231d98d12c19b0098ffbaec6ecda28097dff (diff)
* qt/poppler-qt.h:
* qt/poppler-fontinfo.h: * qt4/src/poppler-qt4.h: * qt4/src/poppler-fontinfo.cc: Implement copy constructor of FontInfo needed as Q[Value]List<FontInfo> uses it when appending
Diffstat (limited to 'qt')
-rw-r--r--qt/poppler-fontinfo.cc9
-rw-r--r--qt/poppler-qt.h2
2 files changed, 11 insertions, 0 deletions
diff --git a/qt/poppler-fontinfo.cc b/qt/poppler-fontinfo.cc
index 1b0d5b86..1c698343 100644
--- a/qt/poppler-fontinfo.cc
+++ b/qt/poppler-fontinfo.cc
@@ -39,6 +39,15 @@ FontInfo::FontInfo( const QString &fontName, const bool isEmbedded, const bool i
data->type = type;
}
+FontInfo::FontInfo( const FontInfo &fi )
+{
+ data = new FontInfoData();
+ data->fontName = fi.data->fontName;
+ data->isEmbedded = fi.data->isEmbedded;
+ data->isSubset = fi.data->isSubset;
+ data->type = fi.data->type;
+}
+
FontInfo::FontInfo()
{
data = new FontInfoData();
diff --git a/qt/poppler-qt.h b/qt/poppler-qt.h
index e9800325..22bd6cdf 100644
--- a/qt/poppler-qt.h
+++ b/qt/poppler-qt.h
@@ -82,6 +82,8 @@ public:
const bool isSubset, Type type );
FontInfo();
+
+ FontInfo( const FontInfo &fi );
~FontInfo();