mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-27 19:50:27 +00:00
Show location in signature panel as well if provided
This commit is contained in:
parent
87b2831232
commit
c7bd071a68
|
@ -23,7 +23,7 @@
|
|||
#include "core/signatureutils.h"
|
||||
|
||||
struct SignatureItem {
|
||||
enum DataType { Root, RevisionInfo, ValidityStatus, SigningTime, Reason, FieldInfo };
|
||||
enum DataType { Root, RevisionInfo, ValidityStatus, SigningTime, Reason, Location, FieldInfo };
|
||||
|
||||
SignatureItem();
|
||||
SignatureItem(SignatureItem *parent, const Okular::FormFieldSignature *form, DataType type, int page);
|
||||
|
@ -162,6 +162,11 @@ void SignatureModelPrivate::notifySetup(const QVector<Okular::Page *> &pages, in
|
|||
auto childItem3 = new SignatureItem(parentItem, nullptr, SignatureItem::Reason, pageNumber);
|
||||
childItem3->displayString = i18n("Reason: %1", reason);
|
||||
}
|
||||
const QString location = info.location();
|
||||
if (!location.isEmpty()) {
|
||||
auto childItem3 = new SignatureItem(parentItem, nullptr, SignatureItem::Location, pageNumber);
|
||||
childItem3->displayString = i18n("Location: %1", location);
|
||||
}
|
||||
|
||||
auto childItem4 = new SignatureItem(parentItem, sf, SignatureItem::FieldInfo, pageNumber);
|
||||
childItem4->displayString = i18n("Field: %1 on page %2", sf->name(), pageNumber + 1);
|
||||
|
|
Loading…
Reference in a new issue