44 Q_DECLARE_PUBLIC(QFontDialog)
48 ~QFontDialogPrivate();
50 QPlatformFontDialogHelper *platformFontDialogHelper()
const
51 {
return static_cast<QPlatformFontDialogHelper *>(platformHelper()); }
53 void updateFamilies();
57 static QFont getFont(
bool *ok,
const QFont &initial, QWidget *parent,
58 const QString &title, QFontDialog::FontDialogOptions options);
61 void sizeChanged(
const QString &);
62 void familyHighlighted(
int);
63 void writingSystemHighlighted(
int);
64 void styleHighlighted(
int);
65 void sizeHighlighted(
int);
67 void updateSampleFont(
const QFont &newFont);
68 void retranslateStrings();
71 QLineEdit *familyEdit;
72 QFontListView *familyList;
76 QFontListView *styleList;
80 QFontListView *sizeList;
88 QLineEdit *sampleEdit;
90 QLabel *writingSystemAccel;
91 QComboBox *writingSystemCombo;
93 QBoxLayout *buttonLayout;
94 QBoxLayout *effectsLayout;
95 QBoxLayout *sampleLayout;
96 QBoxLayout *sampleEditLayout;
98 QDialogButtonBox *buttonBox;
101 QFontDatabase::WritingSystem writingSystem;
106 QSharedPointer<QFontDialogOptions> options;
107 QPointer<QObject> receiverToDisconnectOnClose;
108 QByteArray memberToDisconnectOnClose;
110 bool canBeNativeDialog()
const override;
111 void setVisible(
bool visible) override;
112 void _q_runNativeAppModalPanel();
115 virtual void initHelper(QPlatformDialogHelper *) override;
116 virtual void helperPrepareShow(QPlatformDialogHelper *) override;