Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
// Qt-Security score:significant reason:default
4
5
#
ifndef
QIOSFONTDIALOG_H
6
#
define
QIOSFONTDIALOG_H
7
8
#
include
<
QtCore
/
qeventloop
.
h
>
9
#
include
<
qpa
/
qplatformdialoghelper
.
h
>
10
11
@interface QIOSFontDialogController : UIFontPickerViewController <UIFontPickerViewControllerDelegate,
12
UIAdaptivePresentationControllerDelegate>
13
@end
14
15
QT_BEGIN_NAMESPACE
16
17
class
QIOSFontDialog :
public
QPlatformFontDialogHelper
18
{
19
public
:
20
QIOSFontDialog();
21
~QIOSFontDialog();
22
23
void
exec() override;
24
25
bool
show(Qt::WindowFlags windowFlags, Qt::WindowModality windowModality, QWindow *parent) override;
26
void
hide() override;
27
28
void
setCurrentFont(
const
QFont &) override;
29
QFont currentFont()
const
override;
30
31
void
updateCurrentFont(
const
QFont &);
32
33
private
:
34
QEventLoop m_eventLoop;
35
QIOSFontDialogController *m_viewController;
36
QFont m_currentFont;
37
38
};
39
40
QT_END_NAMESPACE
41
42
#
endif
// QIOSFONTDIALOG_H
qtbase
src
plugins
platforms
ios
qiosfontdialog.h
Generated on
for Qt by
1.14.0