diff options
author | Pino Toscano <pino@kde.org> | 2011-02-27 14:13:50 +0100 |
---|---|---|
committer | Pino Toscano <pino@kde.org> | 2011-02-27 14:13:50 +0100 |
commit | adc236771f11eeb4197064747836e8ed3fbfeba9 (patch) | |
tree | 3c2ccdb9dec917123e4474827df668a4e1bf3a51 /qt4 | |
parent | 9f111483cf6196dedf3cee380c3e5224776203ea (diff) |
[qt4] use FormWidget::getAlternateUiName()
... 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 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; } |