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>.
|
Classes | |
struct | ExtraData |
Additional Inherited Members | |
Public Types inherited from QQuickControlPrivate | |
enum class | UnhideVisibility { Show , Hide } |
Public Types inherited from QQuickItemPrivate | |
enum | ChangeType { Geometry = 0x01 , SiblingOrder = 0x02 , Visibility = 0x04 , Opacity = 0x08 , Destroyed = 0x10 , Parent = 0x20 , Children = 0x40 , Rotation = 0x80 , ImplicitWidth = 0x100 , ImplicitHeight = 0x200 , Enabled = 0x400 , Focus = 0x800 , AllChanges = 0xFFFFFFFF } |
enum | ExtraDataTag { NoTag = 0x1 , LeftMouseButtonAccepted = 0x2 } |
enum | DirtyType { TransformOrigin = 0x00000001 , Transform = 0x00000002 , BasicTransform = 0x00000004 , Position = 0x00000008 , Size = 0x00000010 , ZValue = 0x00000020 , Content = 0x00000040 , Smooth = 0x00000080 , OpacityValue = 0x00000100 , ChildrenChanged = 0x00000200 , ChildrenStackingChanged = 0x00000400 , ParentChanged = 0x00000800 , Clip = 0x00001000 , Window = 0x00002000 , EffectReference = 0x00008000 , Visible = 0x00010000 , HideReference = 0x00020000 , Antialiasing = 0x00040000 , TransformUpdateMask , ComplexTransformUpdateMask = Transform | Window , ContentUpdateMask = Size | Content | Smooth | Window | Antialiasing , ChildrenUpdateMask = ChildrenChanged | ChildrenStackingChanged | EffectReference | Window } |
Public Types inherited from QObjectPrivate | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData> |
Static Public Attributes inherited from QQuickControlPrivate | |
static const ChangeTypes | ImplicitSizeChanges = QQuickItemPrivate::ImplicitWidth | QQuickItemPrivate::ImplicitHeight | QQuickItemPrivate::Destroyed |
Abstract base type providing functionality common to all controls. | |
Protected Member Functions inherited from QQuickPaletteProviderPrivateBase< QQuickItem, QQuickItemPrivate > | |
void | setCurrentColorGroup () |
Definition at line 204 of file qquickcombobox.cpp.
void QQuickComboBoxPrivate::acceptInput | ( | ) |
Definition at line 533 of file qquickcombobox.cpp.
References QQuickControlPrivate::contentItem, emit, extra, Qt::MatchFixedString, QString::size(), and text.
Referenced by QQuickComboBox::contentItemChange(), and QQuickComboBox::setEditable().
qreal QQuickComboBoxPrivate::calculateWidestTextWidth | ( | ) | const |
Definition at line 879 of file qquickcombobox.cpp.
References QQuickItemPrivate::componentComplete, QQuickControlPrivate::contentItem, delegateModel, effectiveTextRole(), QQuickTextInputPrivate::get(), i, qCDebug, qMax(), QQmlInstanceModel::stringValue(), text, and textRole.
Referenced by getContentWidth().
void QQuickComboBoxPrivate::cancelIndicator | ( | ) |
Definition at line 787 of file qquickcombobox.cpp.
References indicatorName(), and quickCancelDeferred().
void QQuickComboBoxPrivate::cancelPopup | ( | ) |
Definition at line 807 of file qquickcombobox.cpp.
References popupName(), and quickCancelDeferred().
void QQuickComboBoxPrivate::countChanged | ( | ) |
Definition at line 439 of file qquickcombobox.cpp.
References emit.
Referenced by createDelegateModel().
void QQuickComboBoxPrivate::createDelegateModel | ( | ) |
Definition at line 716 of file qquickcombobox.cpp.
References QObjectPrivate::connect(), QQmlInstanceModel::countChanged(), countChanged(), QQmlInstanceModel::createdItem(), createdItem(), delegate, delegateModel, disconnect(), emit, QVariant::isValid(), model, modelUpdated(), QQmlInstanceModel::modelUpdated(), ownModel, and QVariant::value().
Definition at line 406 of file qquickcombobox.cpp.
References button, QQuickAbstractButton::clicked(), QObjectPrivate::connect(), QQuickPopup::contentItem, currentIndex, QQuickItemPrivate::get(), QQuickControl::hoveredChanged(), item, itemClicked(), itemHovered(), Qt::NoFocus, QGraphicsItem::parentItem(), popup, qobject_cast< QQuickItem * >(), QWidget::setFocusPolicy(), QGraphicsItem::setParentItem(), and updateCurrentTextAndValue().
Referenced by createDelegateModel().
void QQuickComboBoxPrivate::decrementCurrentIndex | ( | ) |
Definition at line 612 of file qquickcombobox.cpp.
References currentIndex, extra, highlightedIndex, isPopupVisible(), setCurrentIndex(), and setHighlightedIndex().
|
inlineoverridevirtual |
Implements QQuickAbstractPaletteProvider.
Definition at line 269 of file qquickcombobox.cpp.
References QQuickTheme::ComboBox, and QQuickTheme::palette().
QString QQuickComboBoxPrivate::effectiveTextRole | ( | ) | const |
Definition at line 447 of file qquickcombobox.cpp.
References QString::isEmpty(), QStringLiteral, and textRole.
Referenced by calculateWidestTextWidth().
Definition at line 793 of file qquickcombobox.cpp.
References indicator, indicatorName(), quickBeginDeferred(), quickCompleteDeferred(), and QQuickUntypedDeferredPointer::wasExecuted().
Definition at line 813 of file qquickcombobox.cpp.
References popup, popupName(), quickBeginDeferred(), quickCompleteDeferred(), and QQuickUntypedDeferredPointer::wasExecuted().
Referenced by showPopup().
|
overridevirtual |
Reimplemented from QQuickControlPrivate.
Definition at line 861 of file qquickcombobox.cpp.
References calculateWidestTextWidth(), QQuickItemPrivate::componentComplete, QQuickControlPrivate::getContentWidth(), hasCalculatedWidestText, implicitContentWidthPolicy, QQuickComboBox::WidestText, and QQuickComboBox::WidestTextWhenCompleted.
Reimplemented from QQuickControlPrivate.
Definition at line 761 of file qquickcombobox.cpp.
References QQuickControlPrivate::handleMove().
Reimplemented from QQuickControlPrivate.
Definition at line 753 of file qquickcombobox.cpp.
References QQuickControlPrivate::handlePress().
|
overridevirtual |
Reimplemented from QQuickControlPrivate.
Definition at line 769 of file qquickcombobox.cpp.
References QQuickControlPrivate::handleRelease(), pressed, and togglePopup().
|
overridevirtual |
Reimplemented from QQuickControlPrivate.
Definition at line 780 of file qquickcombobox.cpp.
References QQuickControlPrivate::handleUngrab().
|
static |
Definition at line 929 of file qquickcombobox.cpp.
References popup, qCDebug, and QQuickPopup::setVisible().
Referenced by QQuickComboBox::~QQuickComboBox(), and QQuickComboBox::setPopup().
void QQuickComboBoxPrivate::hidePopup | ( | bool | accept | ) |
Definition at line 324 of file qquickcombobox.cpp.
References QQuickPopup::close(), currentIndex, emit, highlightedIndex, and popup.
Referenced by itemClicked(), and togglePopup().
void QQuickComboBoxPrivate::incrementCurrentIndex | ( | ) |
Definition at line 596 of file qquickcombobox.cpp.
References currentIndex, extra, highlightedIndex, isPopupVisible(), setCurrentIndex(), and setHighlightedIndex().
bool QQuickComboBoxPrivate::isPopupVisible | ( | ) | const |
Definition at line 310 of file qquickcombobox.cpp.
References popup.
Referenced by decrementCurrentIndex(), incrementCurrentIndex(), keySearch(), and popupVisibleChanged().
bool QQuickComboBoxPrivate::isValidIndex | ( | int | index | ) | const |
Definition at line 528 of file qquickcombobox.cpp.
References QQmlInstanceModel::count, and delegateModel.
void QQuickComboBoxPrivate::itemClicked | ( | ) |
Definition at line 375 of file qquickcombobox.cpp.
References delegateModel, hidePopup(), QQmlInstanceModel::indexOf(), and setHighlightedIndex().
Referenced by createdItem().
|
overridevirtual |
Reimplemented from QQuickItemChangeListener.
Definition at line 851 of file qquickcombobox.cpp.
References emit, indicator, item, and QQuickControlPrivate::itemDestroyed().
void QQuickComboBoxPrivate::itemHovered | ( | ) |
Definition at line 385 of file qquickcombobox.cpp.
References button, QQuickItemView::Contain, delegateModel, QObject::findChild(), QQuickAbstractButtonPrivate::get(), QQmlInstanceModel::indexOf(), QWidget::isEnabled(), keyNavigating, popup, and setHighlightedIndex().
Referenced by createdItem().
|
overridevirtual |
Reimplemented from QQuickItemChangeListener.
Definition at line 843 of file qquickcombobox.cpp.
References emit, indicator, item, and QQuickControlPrivate::itemImplicitHeightChanged().
|
overridevirtual |
Reimplemented from QQuickItemChangeListener.
Definition at line 825 of file qquickcombobox.cpp.
References emit, indicator, item, and QQuickControlPrivate::itemImplicitWidthChanged().
Definition at line 645 of file qquickcombobox.cpp.
References currentIndex, highlightedIndex, isPopupVisible(), match(), Qt::MatchStartsWith, Qt::MatchWrap, setCurrentIndex(), setHighlightedIndex(), and text.
int QQuickComboBoxPrivate::match | ( | int | start, |
const QString & | text, | ||
Qt::MatchFlags | flags ) const |
Definition at line 657 of file qquickcombobox.cpp.
References QRegularExpression::anchoredPattern(), Qt::CaseInsensitive, QRegularExpression::CaseInsensitiveOption, Qt::CaseSensitive, i, Qt::MatchCaseSensitive, Qt::MatchContains, Qt::MatchEndsWith, Qt::MatchExactly, Qt::MatchFixedString, Qt::MatchRegularExpression, Qt::MatchStartsWith, Qt::MatchWildcard, Qt::MatchWrap, QRegularExpression::NoPatternOption, rx(), text, QRegularExpression::wildcardToRegularExpression(), and wrap().
Referenced by keySearch(), and tryComplete().
void QQuickComboBoxPrivate::maybeUpdateImplicitContentWidth | ( | ) |
If the user requested it (and we haven't already done it, depending on the policy), update the implicit content width to the largest text in the model.
Definition at line 916 of file qquickcombobox.cpp.
References QQuickItemPrivate::componentComplete, QQuickComboBox::ContentItemImplicitWidth, hasCalculatedWidestText, implicitContentWidthPolicy, QQuickControlPrivate::updateImplicitContentWidth(), and QQuickComboBox::WidestTextWhenCompleted.
void QQuickComboBoxPrivate::modelUpdated | ( | ) |
Definition at line 429 of file qquickcombobox.cpp.
References QQuickItemPrivate::componentComplete, extra, implicitContentWidthPolicy, updateCurrentTextAndValue(), QQuickControlPrivate::updateImplicitContentSize(), and QQuickComboBox::WidestText.
Referenced by createDelegateModel().
void QQuickComboBoxPrivate::popupDestroyed | ( | ) |
Definition at line 368 of file qquickcombobox.cpp.
Referenced by QQuickComboBox::setPopup().
void QQuickComboBoxPrivate::popupVisibleChanged | ( | ) |
Definition at line 343 of file qquickcombobox.cpp.
References QQuickItemView::Beginning, QObject::findChild(), hasDown, highlightedIndex, QGuiApplication::inputMethod(), isPopupVisible(), QQuickItemView::NoHighlightRange, popup, QQuickItemView::positionViewAtIndex(), pressed, QQuickItemView::setHighlightRangeMode(), and updateHighlightedIndex().
Referenced by QQuickComboBox::~QQuickComboBox(), and QQuickComboBox::setPopup().
void QQuickComboBoxPrivate::setCurrentIndex | ( | int | index, |
Activation | activate ) |
Definition at line 580 of file qquickcombobox.cpp.
References QQuickItemPrivate::componentComplete, currentIndex, emit, and updateCurrentTextAndValue().
Referenced by decrementCurrentIndex(), incrementCurrentIndex(), and keySearch().
void QQuickComboBoxPrivate::setHighlightedIndex | ( | int | index, |
Highlighting | highlight ) |
Definition at line 632 of file qquickcombobox.cpp.
References emit, and highlightedIndex.
Referenced by decrementCurrentIndex(), incrementCurrentIndex(), itemClicked(), itemHovered(), keySearch(), and updateHighlightedIndex().
Definition at line 833 of file qquickcombobox.cpp.
void QQuickComboBoxPrivate::showPopup | ( | ) |
Definition at line 315 of file qquickcombobox.cpp.
References executePopup(), QQuickPopup::open(), and popup.
Referenced by togglePopup().
void QQuickComboBoxPrivate::togglePopup | ( | bool | accept | ) |
Definition at line 335 of file qquickcombobox.cpp.
References hidePopup(), popup, and showPopup().
Referenced by handleRelease().
Definition at line 558 of file qquickcombobox.cpp.
References Qt::CaseInsensitive, QString::count(), match(), QString::mid(), QString::size(), QString::startsWith(), and text.
Referenced by updateEditText().
void QQuickComboBoxPrivate::updateAcceptableInput | ( | ) |
Definition at line 508 of file qquickcombobox.cpp.
References QQuickControlPrivate::contentItem, emit, and m_acceptableInput.
Referenced by QQuickComboBox::contentItemChange().
void QQuickComboBoxPrivate::updateCurrentText | ( | ) |
Definition at line 473 of file qquickcombobox.cpp.
References currentIndex, currentText, displayText, emit, extra, hasDisplayText, and text.
Referenced by updateCurrentTextAndValue().
void QQuickComboBoxPrivate::updateCurrentTextAndValue | ( | ) |
Definition at line 502 of file qquickcombobox.cpp.
References updateCurrentText(), and updateCurrentValue().
Referenced by createdItem(), modelUpdated(), setCurrentIndex(), and QQuickComboBox::setModel().
void QQuickComboBoxPrivate::updateCurrentValue | ( | ) |
Definition at line 491 of file qquickcombobox.cpp.
References currentIndex, currentValue, and emit.
Referenced by updateCurrentTextAndValue().
void QQuickComboBoxPrivate::updateEditText | ( | ) |
Definition at line 452 of file qquickcombobox.cpp.
References QQuickControlPrivate::contentItem, extra, QString::isEmpty(), QString::size(), text, and tryComplete().
Referenced by QQuickComboBox::contentItemChange(), and QQuickComboBox::setEditable().
void QQuickComboBoxPrivate::updateHighlightedIndex | ( | ) |
Definition at line 627 of file qquickcombobox.cpp.
References currentIndex, popup, and setHighlightedIndex().
Referenced by popupVisibleChanged().
int QQuickComboBoxPrivate::currentIndex = -1 |
Definition at line 281 of file qquickcombobox.cpp.
Referenced by createdItem(), decrementCurrentIndex(), hidePopup(), incrementCurrentIndex(), keySearch(), setCurrentIndex(), updateCurrentText(), updateCurrentValue(), and updateHighlightedIndex().
QString QQuickComboBoxPrivate::currentText |
Definition at line 285 of file qquickcombobox.cpp.
Referenced by updateCurrentText().
QVariant QQuickComboBoxPrivate::currentValue |
Definition at line 288 of file qquickcombobox.cpp.
Referenced by updateCurrentValue().
QQmlComponent* QQuickComboBoxPrivate::delegate = nullptr |
Definition at line 291 of file qquickcombobox.cpp.
Referenced by createDelegateModel().
QQmlInstanceModel* QQuickComboBoxPrivate::delegateModel = nullptr |
Definition at line 290 of file qquickcombobox.cpp.
Referenced by calculateWidestTextWidth(), createDelegateModel(), isValidIndex(), itemClicked(), and itemHovered().
QString QQuickComboBoxPrivate::displayText |
Definition at line 286 of file qquickcombobox.cpp.
Referenced by updateCurrentText().
bool QQuickComboBoxPrivate::down = false |
Definition at line 272 of file qquickcombobox.cpp.
QLazilyAllocated<ExtraData> QQuickComboBoxPrivate::extra |
Definition at line 307 of file qquickcombobox.cpp.
Referenced by acceptInput(), decrementCurrentIndex(), incrementCurrentIndex(), modelUpdated(), setInputMethodHints(), updateCurrentText(), and updateEditText().
bool QQuickComboBoxPrivate::flat = false |
Definition at line 271 of file qquickcombobox.cpp.
bool QQuickComboBoxPrivate::hasCalculatedWidestText = false |
Definition at line 279 of file qquickcombobox.cpp.
Referenced by getContentWidth(), and maybeUpdateImplicitContentWidth().
bool QQuickComboBoxPrivate::hasCurrentIndex = false |
Definition at line 278 of file qquickcombobox.cpp.
bool QQuickComboBoxPrivate::hasDisplayText = false |
Definition at line 277 of file qquickcombobox.cpp.
Referenced by updateCurrentText().
bool QQuickComboBoxPrivate::hasDown = false |
Definition at line 273 of file qquickcombobox.cpp.
Referenced by popupVisibleChanged().
int QQuickComboBoxPrivate::highlightedIndex = -1 |
Definition at line 280 of file qquickcombobox.cpp.
Referenced by decrementCurrentIndex(), hidePopup(), incrementCurrentIndex(), keySearch(), popupVisibleChanged(), and setHighlightedIndex().
QQuickComboBox::ImplicitContentWidthPolicy QQuickComboBoxPrivate::implicitContentWidthPolicy = QQuickComboBox::ContentItemImplicitWidth |
Definition at line 282 of file qquickcombobox.cpp.
Referenced by getContentWidth(), maybeUpdateImplicitContentWidth(), and modelUpdated().
QQuickDeferredPointer<QQuickItem> QQuickComboBoxPrivate::indicator |
Definition at line 292 of file qquickcombobox.cpp.
Referenced by executeIndicator(), itemDestroyed(), itemImplicitHeightChanged(), and itemImplicitWidthChanged().
bool QQuickComboBoxPrivate::keyNavigating = false |
Definition at line 276 of file qquickcombobox.cpp.
Referenced by itemHovered().
bool QQuickComboBoxPrivate::m_acceptableInput = true |
Definition at line 294 of file qquickcombobox.cpp.
Referenced by updateAcceptableInput().
QVariant QQuickComboBoxPrivate::model |
Definition at line 283 of file qquickcombobox.cpp.
Referenced by createDelegateModel().
bool QQuickComboBoxPrivate::ownModel = false |
Definition at line 275 of file qquickcombobox.cpp.
Referenced by createDelegateModel().
QQuickDeferredPointer<QQuickPopup> QQuickComboBoxPrivate::popup |
Definition at line 293 of file qquickcombobox.cpp.
Referenced by createdItem(), executePopup(), hideOldPopup(), hidePopup(), isPopupVisible(), itemHovered(), popupDestroyed(), popupVisibleChanged(), showPopup(), togglePopup(), and updateHighlightedIndex().
bool QQuickComboBoxPrivate::pressed = false |
Definition at line 274 of file qquickcombobox.cpp.
Referenced by handleRelease(), and popupVisibleChanged().
QQuickItem* QQuickComboBoxPrivate::pressedItem = nullptr |
Definition at line 289 of file qquickcombobox.cpp.
QString QQuickComboBoxPrivate::textRole |
Definition at line 284 of file qquickcombobox.cpp.
Referenced by calculateWidestTextWidth(), and effectiveTextRole().
QString QQuickComboBoxPrivate::valueRole |
Definition at line 287 of file qquickcombobox.cpp.