diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2022-05-23 19:20:28 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2022-05-24 14:13:36 +0200 |
commit | bd696e466ac87f385117aa14c5d9577184e021e5 (patch) | |
tree | 8d3b90ecd475dbcf898fe654c0ea7591ce0ed56b /examples | |
parent | f3f9694142af0bfd508fc3face49b242ba6c81b0 (diff) |
QPdfDocument: use enum classes
Change-Id: Iad3f8da130abe86a464d63323920a2a39d6fa955
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/pdfwidgets/pdfviewer/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pdfwidgets/pdfviewer/mainwindow.cpp b/examples/pdfwidgets/pdfviewer/mainwindow.cpp index 25bdaf25e..069e6a6ce 100644 --- a/examples/pdfwidgets/pdfviewer/mainwindow.cpp +++ b/examples/pdfwidgets/pdfviewer/mainwindow.cpp @@ -111,7 +111,7 @@ void MainWindow::open(const QUrl &docLocation) { if (docLocation.isLocalFile()) { m_document->load(docLocation.toLocalFile()); - const auto documentTitle = m_document->metaData(QPdfDocument::Title).toString(); + const auto documentTitle = m_document->metaData(QPdfDocument::MetaDataField::Title).toString(); setWindowTitle(!documentTitle.isEmpty() ? documentTitle : QStringLiteral("PDF Viewer")); pageSelected(0); m_pageSelector->setMaximum(m_document->pageCount() - 1); |