Qt
6.x
The Qt SDK
Loading...
Searching...
No Matches
qpdfpageselector.h
Go to the documentation of this file.
1
// Copyright (C) 2023 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 QPDFPAGESELECTOR_H
5
#define QPDFPAGESELECTOR_H
6
7
#include <QtPdfWidgets/qtpdfwidgetsglobal.h>
8
#include <QtWidgets/qspinbox.h>
9
10
QT_BEGIN_NAMESPACE
11
12
class
QPdfDocument
;
13
class
QPdfPageNavigator
;
14
class
QPdfPageSelectorPrivate
;
15
16
class
Q_PDF_WIDGETS_EXPORT
QPdfPageSelector
:
public
QSpinBox
17
{
18
Q_OBJECT
19
20
Q_PROPERTY
(
QPdfDocument
* document READ document WRITE setDocument NOTIFY documentChanged)
21
22
public
:
23
QPdfPageSelector
() :
QPdfPageSelector
(
nullptr
) {}
24
explicit
QPdfPageSelector
(
QWidget
*
parent
);
25
~QPdfPageSelector
();
26
27
void
setDocument(
QPdfDocument
*document);
28
QPdfDocument
*document()
const
;
29
30
Q_SIGNALS
:
31
void
documentChanged
(
QPdfDocument
*document);
32
33
protected
:
34
int
valueFromText
(
const
QString
&
text
)
const override
;
35
QString
textFromValue
(
int
value
)
const override
;
36
37
private
:
38
Q_DECLARE_PRIVATE(
QPdfPageSelector
)
39
QScopedPointer<QPdfPageSelectorPrivate>
d_ptr
;
40
};
41
42
QT_END_NAMESPACE
43
44
#endif
// QPDFPAGESELECTOR_H
QObject::d_ptr
QScopedPointer< QObjectData > d_ptr
Definition
qobject.h:338
QPdfDocument
The QPdfDocument class loads a PDF document and renders pages from it.
Definition
qpdfdocument.h:21
QPdfPageNavigator
Navigation history within a PDF document.
Definition
qpdfpagenavigator.h:16
QPdfPageSelectorPrivate
Definition
qpdfpageselector_p.h:27
QPdfPageSelector
\inmodule QtPdf
Definition
qpdfpageselector.h:17
QPdfPageSelector::QPdfPageSelector
QPdfPageSelector()
Definition
qpdfpageselector.h:23
QPdfPageSelector::documentChanged
void documentChanged(QPdfDocument *document)
QScopedPointer
\inmodule QtCore
Definition
qscopedpointer.h:71
QSpinBox
The QSpinBox class provides a spin box widget.
Definition
qspinbox.h:16
QSpinBox::valueFromText
virtual int valueFromText(const QString &text) const
This virtual function is used by the spin box whenever it needs to interpret text entered by the user...
Definition
qspinbox.cpp:511
QSpinBox::textFromValue
virtual QString textFromValue(int val) const
This virtual function is used by the spin box whenever it needs to display the given value.
Definition
qspinbox.cpp:478
QString
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition
qstring.h:127
QWidget
The QWidget class is the base class of all user interface objects.
Definition
qwidget.h:99
text
QString text
Definition
doc_src_properties.cpp:102
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
value
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
Definition
qeglstreamconvenience_p.h:46
Q_PROPERTY
#define Q_PROPERTY(...)
Definition
qtmetamacros.h:56
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:117
Q_SIGNALS
#define Q_SIGNALS
Definition
qtmetamacros.h:45
Q_PDF_WIDGETS_EXPORT
#define Q_PDF_WIDGETS_EXPORT
Definition
qtpdfwidgetsglobal.h:16
nullptr
QObject::connect nullptr
Definition
src_corelib_kernel_qobject.cpp:255
parent
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent
Definition
uiaclientinterfaces_p.h:209
qtwebengine
src
pdfwidgets
qpdfpageselector.h
Generated by
1.9.7