Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qpdfpageselector_p.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_P_H
5
#
define
QPDFPAGESELECTOR_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
"qpdfpageselector.h"
19
20
#
include
<
QtWidgets
/
qspinbox
.
h
>
21
22
#
include
<
QPointer
>
23
24
QT_BEGIN_NAMESPACE
25
26
class
QPdfPageSelectorSpinBox
:
public
QSpinBox
27
{
28
Q_OBJECT
29
public
:
30
QPdfPageSelectorSpinBox
() :
QPdfPageSelectorSpinBox
(
nullptr
) {}
31
explicit
QPdfPageSelectorSpinBox
(
QWidget
*
parent
);
32
~
QPdfPageSelectorSpinBox
();
33
34
void
setDocument
(QPdfDocument *document);
35
QPdfDocument *
document
()
const
{
return
m_document.get(); }
36
37
Q_SIGNALS
:
38
void
_q_documentChanged
(
QPdfDocument
*
document
);
39
40
protected
:
41
int
valueFromText
(
const
QString &text)
const
override
;
42
QString
textFromValue
(
int
value)
const
override
;
43
QValidator
::
State
validate
(QString &text,
int
&pos)
const
override
;
44
45
private
:
46
void
documentStatusChanged();
47
private
:
48
QPointer<QPdfDocument> m_document;
49
QMetaObject::Connection m_documentStatusChangedConnection;
50
};
51
52
class
QPdfPageSelectorPrivate
53
{
54
public
:
55
QPdfPageSelectorSpinBox
*
spinBox
;
56
};
57
58
QT_END_NAMESPACE
59
60
#
endif
// QPDFPAGESELECTOR_P_H
QPdfPageSelectorPrivate
Definition
qpdfpageselector_p.h:53
QPdfPageSelectorPrivate::spinBox
QPdfPageSelectorSpinBox * spinBox
Definition
qpdfpageselector_p.h:55
QPdfPageSelectorSpinBox
Definition
qpdfpageselector_p.h:27
QPdfPageSelectorSpinBox::validate
QValidator::State validate(QString &text, int &pos) const override
This virtual function is called by the QAbstractSpinBox to determine whether input is valid.
Definition
qpdfpageselector.cpp:162
QPdfPageSelectorSpinBox::~QPdfPageSelectorSpinBox
~QPdfPageSelectorSpinBox()
QPdfPageSelectorSpinBox::valueFromText
int valueFromText(const QString &text) const override
This virtual function is used by the spin box whenever it needs to interpret text entered by the user...
Definition
qpdfpageselector.cpp:146
QPdfPageSelectorSpinBox::document
QPdfDocument * document() const
Definition
qpdfpageselector_p.h:35
QPdfPageSelectorSpinBox::setDocument
void setDocument(QPdfDocument *document)
Definition
qpdfpageselector.cpp:118
QPdfPageSelectorSpinBox::textFromValue
QString textFromValue(int value) const override
This virtual function is used by the spin box whenever it needs to display the given value.
Definition
qpdfpageselector.cpp:154
QPdfPageSelector
\inmodule QtPdf
Definition
qpdfpageselector.h:19
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtwebengine
src
pdfwidgets
qpdfpageselector_p.h
Generated on
for Qt by
1.18.0