summaryrefslogtreecommitdiffstats
path: root/src/pdf/qpdfdocument.h
diff options
context:
space:
mode:
authorTobias Koenig <tobias.koenig@kdab.com>2016-08-06 20:30:22 +0200
committerTobias Koenig <tobias.koenig@kdab.com>2016-08-08 07:10:23 +0000
commit322ab60499477ce0860f3a9b697e9b696da9570e (patch)
tree909624573cff135bcc6f7425b5a2dd9258cc2446 /src/pdf/qpdfdocument.h
parentcab3f0279696c5213a33f7875a40dc6d68709d82 (diff)
Add close() method to QPdfDocument
The close() method will close an open document and emit the aboutToBeClosed() signal, so that other component, which keep a pointer to QPdfDocument, can react to it. Change-Id: I93200eb0b4bf96479fc114b43c9f6f2af4d15ffa Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/pdf/qpdfdocument.h')
-rw-r--r--src/pdf/qpdfdocument.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pdf/qpdfdocument.h b/src/pdf/qpdfdocument.h
index 6a46c50..bb3602d 100644
--- a/src/pdf/qpdfdocument.h
+++ b/src/pdf/qpdfdocument.h
@@ -61,6 +61,8 @@ public:
Error error() const;
+ void close();
+
int pageCount() const;
QSizeF pageSize(int page) const;
@@ -71,6 +73,7 @@ Q_SIGNALS:
void passwordRequired();
void documentLoadStarted();
void documentLoadFinished();
+ void aboutToBeClosed();
void pageCountChanged();
private: