diff options
author | Tobias Koenig <tobias.koenig@kdab.com> | 2018-02-09 09:21:00 +0100 |
---|---|---|
committer | Michal Klocek <michal.klocek@qt.io> | 2019-11-25 12:01:39 +0100 |
commit | 67763039ad4673acea83dcbc1cd86fc05f78d1dc (patch) | |
tree | ec579b59f45307962349293ae300bd5bb1b91d44 /src | |
parent | b2b219dcd218260c6a304f1cdf016f4dde250dd2 (diff) |
Fix documentation of QPdfDocument class
Change-Id: I8bc6327e86c4381966da759cbe6295b327c4d808
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/pdf/qpdfdocument.cpp | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/src/pdf/qpdfdocument.cpp b/src/pdf/qpdfdocument.cpp index 1dd6f4027..9bd5c294a 100644 --- a/src/pdf/qpdfdocument.cpp +++ b/src/pdf/qpdfdocument.cpp @@ -325,6 +325,17 @@ void QPdfDocumentPrivate::fpdf_AddSegment(_FX_DOWNLOADHINTS *pThis, size_t offse Q_UNUSED(size); } +/*! + \class QPdfDocument + \since 5.10 + \inmodule QtPdf + + \brief The QPdfDocument class loads a PDF document and renders pages from it. +*/ + +/*! + Constructs a new document with parent object \a parent. +*/ QPdfDocument::QPdfDocument(QObject *parent) : QObject(parent) , d(new QPdfDocumentPrivate) @@ -424,7 +435,7 @@ QString QPdfDocument::password() const */ /*! - Returns the meta data of the document for the given field. + Returns the meta data of the document for the given \a field. */ QVariant QPdfDocument::metaData(MetaDataField field) const { @@ -502,14 +513,6 @@ QPdfDocument::DocumentError QPdfDocument::error() const } /*! - \fn void QPdfDocument::aboutToBeClosed() - - This signal is emitted whenever the document is closed. - - \sa close() -*/ - -/*! Closes the document. */ void QPdfDocument::close() @@ -529,6 +532,10 @@ void QPdfDocument::close() d->setStatus(Null); } +/*! + Returns the amount of pages for the loaded document or \c 0 if + no document is loaded. +*/ int QPdfDocument::pageCount() const { return d->pageCount; |