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>.
|
#include <qfontdialog_p.h>
Static Public Member Functions | |
static QFont | getFont (bool *ok, const QFont &initial, QWidget *parent, const QString &title, QFontDialog::FontDialogOptions options) |
Static Public Member Functions inherited from QWidgetPrivate | |
static QWidgetPrivate * | get (QWidget *w) |
static const QWidgetPrivate * | get (const QWidget *w) |
static void | checkRestoredGeometry (const QRect &availableGeometry, QRect *restoredGeometry, int frameHeight) |
static void | adjustFlags (Qt::WindowFlags &flags, QWidget *w=nullptr) |
static QWidget * | parentGraphicsView (const QWidget *widget) |
static QRect | screenGeometry (const QWidget *widget) |
static QRect | availableScreenGeometry (const QWidget *widget) |
static QScreen * | screen (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true) |
static QRect | screenGeometry (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true) |
static QRect | availableScreenGeometry (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true) |
static void | sendComposeStatus (QWidget *w, bool end) |
static void | setWidgetParentHelper (QObject *widgetAsObject, QObject *newParent) |
static bool | insertIntoFocusChain (const QWidgetList &toBeInserted, FocusDirection direction, QWidget *position) |
static QWidgetList | takeFromFocusChain (QWidget *from, QWidget *to, FocusDirection direction=FocusDirection::Next) |
Static Public Member Functions inherited from QObjectPrivate | |
static bool | removeConnection (Connection *c) |
static QObjectPrivate * | get (QObject *o) |
static const QObjectPrivate * | get (const QObject *o) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Private Member Functions | |
virtual void | initHelper (QPlatformDialogHelper *) override |
virtual void | helperPrepareShow (QPlatformDialogHelper *) override |
Definition at line 41 of file qfontdialog_p.h.
QFontDialogPrivate::QFontDialogPrivate | ( | ) |
Definition at line 75 of file qfontdialog.cpp.
QFontDialogPrivate::~QFontDialogPrivate | ( | ) |
Definition at line 81 of file qfontdialog.cpp.
void QFontDialogPrivate::_q_runNativeAppModalPanel | ( | ) |
|
overridevirtual |
Reimplemented from QDialogPrivate.
Definition at line 1027 of file qfontdialog.cpp.
References Qt::AA_DontUseNativeDialogs, className, QFontDialog::DontUseNativeDialog, QDialogPrivate::nativeDialogInUse, QFontDialogOptions::options(), options, QObjectData::q_ptr, QCoreApplication::testAttribute(), and Qt::WA_DontShowOnScreen.
Referenced by setVisible().
void QFontDialogPrivate::familyHighlighted | ( | int | i | ) |
Definition at line 673 of file qfontdialog.cpp.
References family, familyEdit, familyList, i, QLineEdit::selectAll(), QLineEdit::setText(), QStyle::SH_FontDialog_SelectAssociatedText, QFontListView::text(), and updateStyles().
Referenced by init().
|
static |
Definition at line 370 of file qfontdialog.cpp.
References QString::isEmpty(), QFontDialog::NoButtons, ok, options, QObjectData::parent, ret, and title.
Referenced by QFontDialog::getFont(), and QFontDialog::getFont().
|
overrideprivatevirtual |
Reimplemented from QDialogPrivate.
Definition at line 446 of file qfontdialog.cpp.
References options, QFontDialogOptions::setWindowTitle(), and windowTitle().
void QFontDialogPrivate::init | ( | ) |
Definition at line 140 of file qfontdialog.cpp.
References QDialog::accept(), QDialogButtonBox::accepted(), QComboBox::activated(), QDialogButtonBox::addButton(), QComboBox::addItem(), QBoxLayout::addWidget(), Qt::AlignCenter, button, buttonBox, QDialogButtonBox::Cancel, QAbstractButton::clicked(), Qt::ClickFocus, QObject::connect(), QObjectPrivate::connect(), QFontListView::count(), effects, familyAccel, familyEdit, familyHighlighted(), familyList, QFontListView::highlighted(), i, QSizePolicy::Ignored, QObject::installEventFilter(), QString::isEmpty(), QDialogButtonBox::Ok, QDialog::reject(), QDialogButtonBox::rejected(), retranslateStrings(), sample, sampleEdit, QLineEdit::setAlignment(), QLabel::setBuddy(), QFontListView::setCurrentItem(), QPushButton::setDefault(), QWidget::setFocusPolicy(), QWidget::setFocusProxy(), QLabel::setIndent(), QObject::setObjectName(), QLineEdit::setReadOnly(), QWidget::setSizePolicy(), QLineEdit::setText(), QLineEdit::setValidator(), sizeAccel, sizeChanged(), sizeEdit, sizeHighlighted(), sizeList, smoothScalable, spacing, strikeout, styleAccel, styleEdit, styleHighlighted(), styleList, QLineEdit::textChanged(), underline, updateFamilies(), updateSample(), vbox, writingSystemAccel, writingSystemCombo, writingSystemHighlighted(), QFontDatabase::writingSystemName(), and QFontDatabase::WritingSystemsCount.
|
overrideprivatevirtual |
Reimplemented from QDialogPrivate.
Definition at line 434 of file qfontdialog.cpp.
References QObject::connect(), QPlatformFontDialogHelper::currentFontChanged(), QFontDialog::currentFontChanged(), QPlatformFontDialogHelper::fontSelected(), QFontDialog::fontSelected(), options, and QPlatformFontDialogHelper::setOptions().
|
inline |
Definition at line 49 of file qfontdialog_p.h.
References QDialogPrivate::platformHelper().
void QFontDialogPrivate::retranslateStrings | ( | ) |
Definition at line 751 of file qfontdialog.cpp.
References effects, familyAccel, sample, QLabel::setText(), QAbstractButton::setText(), QGroupBox::setTitle(), sizeAccel, strikeout, styleAccel, underline, and writingSystemAccel.
Referenced by init().
|
overridevirtual |
The implementation of QFontDialog::setVisible() has to live here so that the call to hide() in ~QDialog calls this function; it wouldn't call the override of QDialog::setVisible().
Reimplemented from QDialogPrivate.
Definition at line 983 of file qfontdialog.cpp.
References canBeNativeDialog(), QDialogPrivate::nativeDialogInUse, QDialogPrivate::setNativeDialogVisible(), QDialogPrivate::setVisible(), and Qt::WA_DontShowOnScreen.
This slot is called if the user changes the font size. The size is passed in the s argument as a string.
Definition at line 728 of file qfontdialog.cpp.
References QAbstractItemView::clearSelection(), QFontListView::count(), i, QFontListView::setCurrentItem(), size, sizeList, QFontListView::text(), this, QString::toInt(), and updateSample().
Referenced by init().
void QFontDialogPrivate::sizeHighlighted | ( | int | index | ) |
Definition at line 709 of file qfontdialog.cpp.
References QWidget::hasFocus(), QLineEdit::selectAll(), QLineEdit::setText(), QStyle::SH_FontDialog_SelectAssociatedText, sizeEdit, sizeList, QFontListView::text(), and updateSample().
Referenced by init().
void QFontDialogPrivate::styleHighlighted | ( | int | index | ) |
Definition at line 690 of file qfontdialog.cpp.
References QLineEdit::selectAll(), QLineEdit::setText(), QStyle::SH_FontDialog_SelectAssociatedText, style, styleEdit, styleList, QFontListView::text(), and updateSizes().
Referenced by init().
void QFontDialogPrivate::updateFamilies | ( | ) |
Definition at line 456 of file qfontdialog.cpp.
References QSet< T >::constBegin(), QSet< T >::constEnd(), QFontListView::currentText(), QFontDatabase::families(), family, familyEdit, familyList, i, QFontDatabase::isFixedPitch(), QFontDatabase::isPrivateFamily(), QFontDatabase::isSmoothlyScalable(), it, QFontListView::model(), QFontDialog::MonospacedFonts, QFontDialog::NonScalableFonts, QFontDialogOptions::options(), options, QFontDatabasePrivate::parseFontName(), QFontDialog::ProportionalFonts, QFontDialog::ScalableFonts, QLineEdit::selectAll(), QFontListView::setCurrentItem(), QStringListModel::setStringList(), QLineEdit::setText(), QStyle::SH_FontDialog_SelectAssociatedText, updateStyles(), and writingSystem.
Referenced by init(), and writingSystemHighlighted().
void QFontDialogPrivate::updateSample | ( | ) |
Definition at line 637 of file qfontdialog.cpp.
References QLineEdit::clear(), QFontListView::currentText(), familyList, QFontDatabase::font(), QAbstractButton::isChecked(), QString::isEmpty(), sampleEdit, sizeEdit, strikeout, style, QLineEdit::text, QString::toInt(), underline, and updateSampleFont().
Referenced by init(), sizeChanged(), sizeHighlighted(), and updateSizes().
Definition at line 651 of file qfontdialog.cpp.
References emit, QWidget::font, sampleEdit, and QWidget::setFont().
Referenced by updateSample().
void QFontDialogPrivate::updateSizes | ( | ) |
Updates the contents of the "font size" list box. This function can be reimplemented if you have special requirements.
Definition at line 604 of file qfontdialog.cpp.
References QLineEdit::clear(), QSet< T >::constBegin(), QSet< T >::constEnd(), QFontListView::currentText(), familyList, i, QString::isEmpty(), it, QFontListView::model(), QString::number(), QFontDatabase::pointSizes(), QLineEdit::selectAll(), QFontListView::setCurrentItem(), QStringListModel::setStringList(), QLineEdit::setText(), QStyle::SH_FontDialog_SelectAssociatedText, sizeEdit, sizeList, smoothScalable, styleList, and updateSample().
Referenced by styleHighlighted(), and updateStyles().
void QFontDialogPrivate::updateStyles | ( | ) |
Definition at line 539 of file qfontdialog.cpp.
References QLineEdit::clear(), QFontListView::count(), QFontListView::currentText(), familyList, i, QString::isEmpty(), QFontDatabase::isSmoothlyScalable(), QFontListView::model(), QLineEdit::selectAll(), QFontListView::setCurrentItem(), QStringListModel::setStringList(), QLineEdit::setText(), QStyle::SH_FontDialog_SelectAssociatedText, smoothScalable, style, styleEdit, styleList, QFontDatabase::styles(), QFontListView::text(), and updateSizes().
Referenced by familyHighlighted(), and updateFamilies().
void QFontDialogPrivate::writingSystemHighlighted | ( | int | index | ) |
Definition at line 663 of file qfontdialog.cpp.
References sampleEdit, QLineEdit::setText(), updateFamilies(), writingSystem, and QFontDatabase::writingSystemSample().
Referenced by init().
QDialogButtonBox* QFontDialogPrivate::buttonBox |
Definition at line 97 of file qfontdialog_p.h.
Referenced by init().
QBoxLayout* QFontDialogPrivate::buttonLayout |
Definition at line 92 of file qfontdialog_p.h.
QComboBox* QFontDialogPrivate::color |
Definition at line 84 of file qfontdialog_p.h.
QGroupBox* QFontDialogPrivate::effects |
Definition at line 81 of file qfontdialog_p.h.
Referenced by init(), and retranslateStrings().
QBoxLayout* QFontDialogPrivate::effectsLayout |
Definition at line 93 of file qfontdialog_p.h.
QString QFontDialogPrivate::family |
Definition at line 99 of file qfontdialog_p.h.
Referenced by familyHighlighted(), and updateFamilies().
QLabel* QFontDialogPrivate::familyAccel |
Definition at line 69 of file qfontdialog_p.h.
Referenced by init(), and retranslateStrings().
QLineEdit* QFontDialogPrivate::familyEdit |
Definition at line 70 of file qfontdialog_p.h.
Referenced by familyHighlighted(), init(), and updateFamilies().
QFontListView* QFontDialogPrivate::familyList |
Definition at line 71 of file qfontdialog_p.h.
Referenced by familyHighlighted(), init(), updateFamilies(), updateSample(), updateSizes(), and updateStyles().
QByteArray QFontDialogPrivate::memberToDisconnectOnClose |
Definition at line 107 of file qfontdialog_p.h.
QSharedPointer<QFontDialogOptions> QFontDialogPrivate::options |
Definition at line 105 of file qfontdialog_p.h.
Referenced by canBeNativeDialog(), getFont(), helperPrepareShow(), initHelper(), and updateFamilies().
Definition at line 106 of file qfontdialog_p.h.
QGroupBox* QFontDialogPrivate::sample |
Definition at line 86 of file qfontdialog_p.h.
Referenced by init(), and retranslateStrings().
QLineEdit* QFontDialogPrivate::sampleEdit |
Definition at line 87 of file qfontdialog_p.h.
Referenced by init(), updateSample(), updateSampleFont(), and writingSystemHighlighted().
QBoxLayout* QFontDialogPrivate::sampleEditLayout |
Definition at line 95 of file qfontdialog_p.h.
QBoxLayout* QFontDialogPrivate::sampleLayout |
Definition at line 94 of file qfontdialog_p.h.
QFont QFontDialogPrivate::selectedFont |
Definition at line 104 of file qfontdialog_p.h.
int QFontDialogPrivate::size |
Definition at line 102 of file qfontdialog_p.h.
Referenced by sizeChanged().
QLabel* QFontDialogPrivate::sizeAccel |
Definition at line 77 of file qfontdialog_p.h.
Referenced by init(), and retranslateStrings().
QLineEdit* QFontDialogPrivate::sizeEdit |
Definition at line 78 of file qfontdialog_p.h.
Referenced by init(), sizeHighlighted(), updateSample(), and updateSizes().
QFontListView* QFontDialogPrivate::sizeList |
Definition at line 79 of file qfontdialog_p.h.
Referenced by init(), sizeChanged(), sizeHighlighted(), and updateSizes().
bool QFontDialogPrivate::smoothScalable |
Definition at line 103 of file qfontdialog_p.h.
Referenced by init(), updateSizes(), and updateStyles().
QCheckBox* QFontDialogPrivate::strikeout |
Definition at line 82 of file qfontdialog_p.h.
Referenced by init(), retranslateStrings(), and updateSample().
QString QFontDialogPrivate::style |
Definition at line 101 of file qfontdialog_p.h.
Referenced by styleHighlighted(), updateSample(), and updateStyles().
QLabel* QFontDialogPrivate::styleAccel |
Definition at line 73 of file qfontdialog_p.h.
Referenced by init(), and retranslateStrings().
QLineEdit* QFontDialogPrivate::styleEdit |
Definition at line 74 of file qfontdialog_p.h.
Referenced by init(), styleHighlighted(), and updateStyles().
QFontListView* QFontDialogPrivate::styleList |
Definition at line 75 of file qfontdialog_p.h.
Referenced by init(), styleHighlighted(), updateSizes(), and updateStyles().
QCheckBox* QFontDialogPrivate::underline |
Definition at line 83 of file qfontdialog_p.h.
Referenced by init(), retranslateStrings(), and updateSample().
QFontDatabase::WritingSystem QFontDialogPrivate::writingSystem |
Definition at line 100 of file qfontdialog_p.h.
Referenced by updateFamilies(), and writingSystemHighlighted().
QLabel* QFontDialogPrivate::writingSystemAccel |
Definition at line 89 of file qfontdialog_p.h.
Referenced by init(), and retranslateStrings().
QComboBox* QFontDialogPrivate::writingSystemCombo |
Definition at line 90 of file qfontdialog_p.h.
Referenced by init().