summaryrefslogtreecommitdiffstats
path: root/src/pdf/qpdfdocument.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pdf/qpdfdocument.h')
-rw-r--r--src/pdf/qpdfdocument.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pdf/qpdfdocument.h b/src/pdf/qpdfdocument.h
index 1a96d6e11..8355246ae 100644
--- a/src/pdf/qpdfdocument.h
+++ b/src/pdf/qpdfdocument.h
@@ -62,7 +62,7 @@ public:
enum class PageModelRole {
Label = Qt::UserRole,
PointSize,
- _Count
+ NRoles
};
Q_ENUM(PageModelRole)
@@ -89,6 +89,7 @@ public:
Q_INVOKABLE QSizeF pagePointSize(int page) const;
Q_INVOKABLE QString pageLabel(int page);
+ Q_INVOKABLE int pageIndexForLabel(const QString &label);
QAbstractListModel *pageModel();