diff options
author | Pino Toscano <pino@kde.org> | 2011-02-27 14:07:35 +0100 |
---|---|---|
committer | Pino Toscano <pino@kde.org> | 2011-02-27 14:07:35 +0100 |
commit | cfaadaa9e4a857fcea3b5a2cadacd352de6c469d (patch) | |
tree | 8dfa3b20f91fcfe53bd81e123425baebf36587f6 /qt4 | |
parent | 2478896a0c1f6e5842f3d8b172e4cc7e6bd58cd8 (diff) |
[qt4] use FormWidget::getPartialName()
... instead of read the value on our own
Diffstat (limited to 'qt4')
-rw-r--r-- | qt4/src/poppler-form.cc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/qt4/src/poppler-form.cc b/qt4/src/poppler-form.cc index 0f9b4846..58873004 100644 --- a/qt4/src/poppler-form.cc +++ b/qt4/src/poppler-form.cc @@ -96,16 +96,11 @@ int FormField::id() const QString FormField::name() const { - Object tmp; - Object *obj = m_formData->fm->getObj(); QString name; - if (obj->dictLookup("T", &tmp)->isString()) + if (GooString *goo = m_formData->fm->getPartialName()) { - GooString *goo = tmp.getString(); - if (goo) - name = goo->getCString(); + name = QString::fromLatin1(goo->getCString()); } - tmp.free(); return name; } |