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
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
25#include <QtCore/qpointer.h>
26#include "qsharedpointer.h"
27
29
31
32class QBoxLayout;
33class QCheckBox;
34class QComboBox;
36class QFontListView;
37class QGroupBox;
38class QLabel;
39class QLineEdit;
40
42{
43 Q_DECLARE_PUBLIC(QFontDialog)
44
45public:
48
51
52 void updateFamilies();
53 void updateStyles();
54 void updateSizes();
55
56 static QFont getFont(bool *ok, const QFont &initial, QWidget *parent,
57 const QString &title, QFontDialog::FontDialogOptions options);
58
59 void init();
60 void sizeChanged(const QString &);
61 void familyHighlighted(int);
62 void writingSystemHighlighted(int);
63 void styleHighlighted(int);
64 void sizeHighlighted(int);
65 void updateSample();
66 void updateSampleFont(const QFont &newFont);
67 void retranslateStrings();
68
72
76
80
85
88
91
96
98
102 int size;
105 QSharedPointer<QFontDialogOptions> options;
108
109 bool canBeNativeDialog() const override;
110 void setVisible(bool visible) override;
112
113private:
114 virtual void initHelper(QPlatformDialogHelper *) override;
115 virtual void helperPrepareShow(QPlatformDialogHelper *) override;
116};
117
119
120#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 combines a button with a dropdown 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 setVisible(bool visible)
Definition qdialog.cpp:754
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:22
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.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
void init(QWidget *desktopWidget, Qt::WindowFlags f)
Definition qwidget.cpp:937
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]