summaryrefslogtreecommitdiff
path: root/qt4
diff options
context:
space:
mode:
authorPino Toscano <pino@kde.org>2011-02-27 14:13:50 +0100
committerPino Toscano <pino@kde.org>2011-02-27 14:13:50 +0100
commitadc236771f11eeb4197064747836e8ed3fbfeba9 (patch)
tree3c2ccdb9dec917123e4474827df668a4e1bf3a51 /qt4
parent9f111483cf6196dedf3cee380c3e5224776203ea (diff)
[qt4] use FormWidget::getAlternateUiName()
... instead of read the value on our own
Diffstat (limited to 'qt4')
-rw-r--r--qt4/src/poppler-form.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/qt4/src/poppler-form.cc b/qt4/src/poppler-form.cc
index 58873004..f3b97b5b 100644
--- a/qt4/src/poppler-form.cc
+++ b/qt4/src/poppler-form.cc
@@ -106,16 +106,11 @@ QString FormField::name() const
QString FormField::uiName() const
{
- Object tmp;
- Object *obj = m_formData->fm->getObj();
QString name;
- if (obj->dictLookup("TU", &tmp)->isString())
+ if (GooString *goo = m_formData->fm->getAlternateUiName())
{
- GooString *goo = tmp.getString();
- if (goo)
- name = goo->getCString();
+ name = QString::fromLatin1(goo->getCString());
}
- tmp.free();
return name;
}