Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qtpdfglobal_p.h
Go to the documentation of this file.
1// Copyright (C) 2024 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QTPDFGLOBAL_P_H
5#define QTPDFGLOBAL_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtPdf/qtpdfglobal.h>
19#include <QLoggingCategory>
20
21// The Q_PDF_LOGGING_CATEGORY macro is a stopgap fix for the deprecation warnings
22// introduced alongside the new logging category macros in Qt 6.9. Since we need to support
23// building with older versions up to and including the last LTS release (6.8), we can't simply
24// switch to using Q_STATIC_LOGGING_CATEGORY. This file and the macro definition within
25// are intended to be removed in the next Qt 6 LTS+1 release.
26#if defined(Q_STATIC_LOGGING_CATEGORY)
27#define Q_PDF_LOGGING_CATEGORY(name, ...) Q_STATIC_LOGGING_CATEGORY(name, __VA_ARGS__)
28#else
29#define Q_PDF_LOGGING_CATEGORY(name, ...) Q_LOGGING_CATEGORY(name, __VA_ARGS__)
30#endif
31
32#endif // QTPDFGLOBAL_P_H
The QPdfBookmarkModel class holds a tree of links (anchors) within a PDF document,...
The QPdfDocument class loads a PDF document and renders pages from it.
#define Q_PDF_LOGGING_CATEGORY(name,...)
QHash< int, QByteArray > m_roleNames
QPointer< QPdfDocument > m_document
void appendChildNode(BookmarkNode *parentBookmarkNode, FPDF_BOOKMARK parentBookmark, int level, FPDF_DOCUMENT document)
QScopedPointer< BookmarkNode > m_rootNode