1 | // Copyright (C) 2021 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 QQUICKFONTDIALOGIMPL_P_P_H |
5 | #define QQUICKFONTDIALOGIMPL_P_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 <QtQuickTemplates2/private/qquickcombobox_p.h> |
19 | #include <QtQuickTemplates2/private/qquickdialog_p_p.h> |
20 | #include <QtQuickTemplates2/private/qquickdialogbuttonbox_p.h> |
21 | |
22 | #include "qquickfontdialogimpl_p.h" |
23 | |
24 | QT_BEGIN_NAMESPACE |
25 | |
26 | class QQuickFontDialogImplPrivate : public QQuickDialogPrivate |
27 | { |
28 | Q_DECLARE_PUBLIC(QQuickFontDialogImpl) |
29 | public: |
30 | QQuickFontDialogImplPrivate(); |
31 | |
32 | static QQuickFontDialogImplPrivate *get(QQuickFontDialogImpl *dialog) |
33 | { |
34 | return dialog->d_func(); |
35 | } |
36 | |
37 | QQuickFontDialogImplAttached *attachedOrWarn(); |
38 | |
39 | void updateEnabled(); |
40 | |
41 | void handleAccept() override; |
42 | void handleClick(QQuickAbstractButton *button) override; |
43 | |
44 | QSharedPointer<QFontDialogOptions> options; |
45 | |
46 | QFont currentFont; |
47 | }; |
48 | |
49 | class QQuickFontDialogImplAttachedPrivate : public QObjectPrivate |
50 | { |
51 | void currentFontChanged(const QFont &font); |
52 | |
53 | public: |
54 | Q_DECLARE_PUBLIC(QQuickFontDialogImplAttached) |
55 | |
56 | QPointer<QQuickDialogButtonBox> buttonBox; |
57 | QPointer<QQuickListView> familyListView; |
58 | QPointer<QQuickListView> styleListView; |
59 | QPointer<QQuickListView> sizeListView; |
60 | QPointer<QQuickTextEdit> sampleEdit; |
61 | QPointer<QQuickComboBox> writingSystemComboBox; |
62 | QPointer<QQuickCheckBox> underlineCheckBox; |
63 | QPointer<QQuickCheckBox> strikeoutCheckBox; |
64 | QPointer<QQuickTextField> familyEdit; |
65 | QPointer<QQuickTextField> styleEdit; |
66 | QPointer<QQuickTextField> sizeEdit; |
67 | }; |
68 | |
69 | QT_END_NAMESPACE |
70 | |
71 | #endif // QQUICKFONTDIALOGIMPL_P_P_H |
72 |