// Copyright (C) 2021 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only #ifndef QQUICKFONTDIALOGIMPL_P_P_H #define QQUICKFONTDIALOGIMPL_P_P_H // // W A R N I N G // ------------- // // This file is not part of the Qt API. It exists purely as an // implementation detail. This header file may change from version to // version without notice, or even be removed. // // We mean it. // #include #include #include #include "qquickfontdialogimpl_p.h" #include QT_BEGIN_NAMESPACE class QQuickFontDialogImplPrivate : public QQuickDialogPrivate { Q_DECLARE_PUBLIC(QQuickFontDialogImpl) public: QQuickFontDialogImplPrivate(); static QQuickFontDialogImplPrivate *get(QQuickFontDialogImpl *dialog) { return dialog->d_func(); } QQuickFontDialogImplAttached *attachedOrWarn(); void updateEnabled(); void handleAccept() override; void handleClick(QQuickAbstractButton *button) override; QSharedPointer options; QFont currentFont; }; class QQuickFontDialogImplAttachedPrivate : public QObjectPrivate { void currentFontChanged(const QFont &font); public: Q_DECLARE_PUBLIC(QQuickFontDialogImplAttached) QPointer buttonBox; QPointer familyListView; QPointer styleListView; QPointer sizeListView; QPointer sampleEdit; QPointer writingSystemComboBox; QPointer underlineCheckBox; QPointer strikeoutCheckBox; QPointer familyEdit; QPointer styleEdit; QPointer sizeEdit; }; QT_END_NAMESPACE #endif // QQUICKFONTDIALOGIMPL_P_P_H