Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qiosfontdialog.h
Go to the documentation of this file.
1// Copyright (C) 2022 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 QIOSFONTDIALOG_H
5#define QIOSFONTDIALOG_H
6
7#include <QtCore/qeventloop.h>
8#include <qpa/qplatformdialoghelper.h>
9
10@interface QIOSFontDialogController : UIFontPickerViewController <UIFontPickerViewControllerDelegate,
11 UIAdaptivePresentationControllerDelegate>
12@end
13
15
17{
18public:
21
22 void exec() override;
23
24 bool show(Qt::WindowFlags windowFlags, Qt::WindowModality windowModality, QWindow *parent) override;
25 void hide() override;
26
27 void setCurrentFont(const QFont &) override;
28 QFont currentFont() const override;
29
30 void updateCurrentFont(const QFont &);
31
32private:
33 QEventLoop m_eventLoop;
34 QIOSFontDialogController *m_viewController;
35 QFont m_currentFont;
36
37};
38
40
41#endif // QIOSFONTDIALOG_H
\inmodule QtCore
Definition qeventloop.h:16
\reentrant
Definition qfont.h:22
The QPlatformFontDialogHelper class allows for platform-specific customization of font dialogs.
\inmodule QtGui
Definition qwindow.h:63
Combined button and popup list for selecting options.
WindowModality
view show()
[18] //! [19]
dialog exec()
edit hide()