mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Structure tree (first part)
This commit is contained in:
@ -70,7 +70,7 @@ void PDFDocumentPropertiesDialog::initializeProperties(const pdf::PDFDocument* d
|
||||
// Initialize document properties
|
||||
QTreeWidgetItem* propertiesRoot = new QTreeWidgetItem({ tr("Properties") });
|
||||
|
||||
const pdf::PDFDocument::Info* info = document->getInfo();
|
||||
const pdf::PDFDocumentInfo* info = document->getInfo();
|
||||
const pdf::PDFCatalog* catalog = document->getCatalog();
|
||||
new QTreeWidgetItem(propertiesRoot, { tr("PDF version"), QString::fromLatin1(document->getVersion()) });
|
||||
new QTreeWidgetItem(propertiesRoot, { tr("Title"), info->title });
|
||||
@ -85,15 +85,15 @@ void PDFDocumentPropertiesDialog::initializeProperties(const pdf::PDFDocument* d
|
||||
QString trapped;
|
||||
switch (info->trapped)
|
||||
{
|
||||
case pdf::PDFDocument::Info::Trapped::True:
|
||||
case pdf::PDFDocumentInfo::Trapped::True:
|
||||
trapped = tr("True");
|
||||
break;
|
||||
|
||||
case pdf::PDFDocument::Info::Trapped::False:
|
||||
case pdf::PDFDocumentInfo::Trapped::False:
|
||||
trapped = tr("False");
|
||||
break;
|
||||
|
||||
case pdf::PDFDocument::Info::Trapped::Unknown:
|
||||
case pdf::PDFDocumentInfo::Trapped::Unknown:
|
||||
trapped = tr("Unknown");
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user