Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qfontdialog_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 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 QFONTDIALOG_P_H
5#define QFONTDIALOG_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
19#include <QtWidgets/private/qtwidgetsglobal_p.h>
20#include "private/qdialog_p.h"
21#include "qfontdatabase.h"
22#include "qfontdialog.h"
23#include <qpa/qplatformdialoghelper.h>
24#include "qsharedpointer.h"
25
27
29
30class QBoxLayout;
31class QCheckBox;
32class QComboBox;
34class QFontListView;
35class QGroupBox;
36class QLabel;
37class QLineEdit;
38
40{
41 Q_DECLARE_PUBLIC(QFontDialog)
42
43public:
46
48 { return static_cast<QPlatformFontDialogHelper *>(platformHelper()); }
49
50 void updateFamilies();
51 void updateStyles();
52 void updateSizes();
53
54 static QFont getFont(bool *ok, const QFont &initial, QWidget *parent,
55 const QString &title, QFontDialog::FontDialogOptions options);
56
57 void init();
58 void _q_sizeChanged(const QString &);
59 void _q_familyHighlighted(int);
60 void _q_writingSystemHighlighted(int);
61 void _q_styleHighlighted(int);
62 void _q_sizeHighlighted(int);
63 void _q_updateSample();
64 void updateSampleFont(const QFont &newFont);
65 void retranslateStrings();
66
70
74
78
83
86
89
94
96
100 int size;
106
107 bool canBeNativeDialog() const override;
109
110private:
111 virtual void initHelper(QPlatformDialogHelper *) override;
112 virtual void helperPrepareShow(QPlatformDialogHelper *) override;
113};
114
116
117#endif // QFONTDIALOG_P_H
The QBoxLayout class lines up child widgets horizontally or vertically.
Definition qboxlayout.h:21
\inmodule QtCore
Definition qbytearray.h:57
The QCheckBox widget provides a checkbox with a text label.
Definition qcheckbox.h:19
The QComboBox widget is a combined button and popup list.
Definition qcombobox.h:24
The QDialogButtonBox class is a widget that presents buttons in a layout that is appropriate to the c...
virtual void initHelper(QPlatformDialogHelper *)
Definition qdialog_p.h:96
QPlatformDialogHelper * platformHelper() const
Definition qdialog.cpp:77
virtual bool canBeNativeDialog() const
Definition qdialog.cpp:99
virtual void helperPrepareShow(QPlatformDialogHelper *)
Definition qdialog_p.h:97
WritingSystem
\value Any \value Latin \value Greek \value Cyrillic \value Armenian \value Hebrew \value Arabic \val...
QFontListView * familyList
QLineEdit * styleEdit
QBoxLayout * sampleLayout
QByteArray memberToDisconnectOnClose
QLineEdit * sizeEdit
QBoxLayout * effectsLayout
QGroupBox * effects
QLineEdit * familyEdit
void _q_runNativeAppModalPanel()
QLabel * writingSystemAccel
QSharedPointer< QFontDialogOptions > options
QComboBox * writingSystemCombo
QDialogButtonBox * buttonBox
QPlatformFontDialogHelper * platformFontDialogHelper() const
QFontListView * sizeList
QFontListView * styleList
QLineEdit * sampleEdit
QCheckBox * underline
QBoxLayout * buttonLayout
QPointer< QObject > receiverToDisconnectOnClose
QCheckBox * strikeout
QFontDatabase::WritingSystem writingSystem
QBoxLayout * sampleEditLayout
\inmodule QtWidgets
Definition qfontdialog.h:20
\reentrant
Definition qfont.h:20
The QGroupBox widget provides a group box frame with a title.
Definition qgroupbox.h:17
The QLabel widget provides a text or image display.
Definition qlabel.h:20
The QLineEdit widget is a one-line text editor.
Definition qlineedit.h:28
The QPlatformDialogHelper class allows for platform-specific customization of dialogs.
The QPlatformFontDialogHelper class allows for platform-specific customization of font dialogs.
\inmodule QtCore
Definition qpointer.h:18
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
void init(QWidget *desktopWidget, Qt::WindowFlags f)
Definition qwidget.cpp:936
The QWidget class is the base class of all user interface objects.
Definition qwidget.h:99
Combined button and popup list for selecting options.
#define Q_AUTOTEST_EXPORT
#define QT_REQUIRE_CONFIG(feature)
QString title
[35]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent