![]() |
Qt 6.x
The Qt SDK
|
Classes | |
struct | ExtraData |
Additional Inherited Members | |
![]() | |
enum class | UnhideVisibility { Show , Hide } |
![]() | |
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 } |
![]() | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > |
![]() | |
static const ChangeTypes | ImplicitSizeChanges = QQuickItemPrivate::ImplicitWidth | QQuickItemPrivate::ImplicitHeight | QQuickItemPrivate::Destroyed |
Abstract base type providing functionality common to all controls. | |
![]() | |
void | setCurrentColorGroup () |
Definition at line 204 of file qquickcombobox.cpp.
void QQuickComboBoxPrivate::acceptInput | ( | ) |
Definition at line 524 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 860 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 778 of file qquickcombobox.cpp.
References indicatorName(), and quickCancelDeferred().
void QQuickComboBoxPrivate::cancelPopup | ( | ) |
Definition at line 798 of file qquickcombobox.cpp.
References popupName(), and quickCancelDeferred().
void QQuickComboBoxPrivate::countChanged | ( | ) |
Definition at line 430 of file qquickcombobox.cpp.
References emit.
Referenced by createDelegateModel().
void QQuickComboBoxPrivate::createDelegateModel | ( | ) |
Definition at line 707 of file qquickcombobox.cpp.
References QQmlDelegateModel::componentComplete(), QObjectPrivate::connect(), QQmlInstanceModel::countChanged(), countChanged(), QQmlInstanceModel::createdItem(), createdItem(), delegate, delegateModel, disconnect(), emit, QVariant::isValid(), model, modelUpdated(), QQmlInstanceModel::modelUpdated(), ownModel, QQmlDelegateModel::setDelegate(), QQmlDelegateModel::setModel(), and QVariant::value().
Definition at line 397 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 * >(), QQuickItemPrivate::setCulled(), QWidget::setFocusPolicy(), QGraphicsItem::setParentItem(), and updateCurrentTextAndValue().
Referenced by createDelegateModel().
void QQuickComboBoxPrivate::decrementCurrentIndex | ( | ) |
Definition at line 603 of file qquickcombobox.cpp.
References currentIndex, extra, highlightedIndex, isPopupVisible(), setCurrentIndex(), and setHighlightedIndex().
|
inlineoverridevirtual |
Implements QQuickAbstractPaletteProvider.
Definition at line 267 of file qquickcombobox.cpp.
References QQuickTheme::ComboBox, and QQuickTheme::palette().
QString QQuickComboBoxPrivate::effectiveTextRole | ( | ) | const |
Definition at line 438 of file qquickcombobox.cpp.
References QString::isEmpty(), QStringLiteral, and textRole.
Referenced by calculateWidestTextWidth().
Definition at line 784 of file qquickcombobox.cpp.
References indicator, indicatorName(), quickBeginDeferred(), quickCompleteDeferred(), and QQuickUntypedDeferredPointer::wasExecuted().
Definition at line 804 of file qquickcombobox.cpp.
References popup, popupName(), quickBeginDeferred(), quickCompleteDeferred(), and QQuickUntypedDeferredPointer::wasExecuted().
Referenced by showPopup().
|
overridevirtual |
Reimplemented from QQuickControlPrivate.
Definition at line 842 of file qquickcombobox.cpp.
References calculateWidestTextWidth(), QQuickItemPrivate::componentComplete, QQuickControlPrivate::getContentWidth(), hasCalculatedWidestText, implicitContentWidthPolicy, QQuickComboBox::WidestText, and QQuickComboBox::WidestTextWhenCompleted.
Reimplemented from QQuickControlPrivate.
Definition at line 752 of file qquickcombobox.cpp.
References QQuickControlPrivate::handleMove().
Reimplemented from QQuickControlPrivate.
Definition at line 744 of file qquickcombobox.cpp.
References QQuickControlPrivate::handlePress().
|
overridevirtual |
Reimplemented from QQuickControlPrivate.
Definition at line 760 of file qquickcombobox.cpp.
References QQuickControlPrivate::handleRelease(), pressed, and togglePopup().
|
overridevirtual |
Reimplemented from QQuickControlPrivate.
Definition at line 771 of file qquickcombobox.cpp.
References QQuickControlPrivate::handleUngrab().
|
static |
Definition at line 910 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 322 of file qquickcombobox.cpp.
References QQuickPopup::close(), currentIndex, emit, highlightedIndex, and popup.
Referenced by itemClicked(), and togglePopup().
void QQuickComboBoxPrivate::incrementCurrentIndex | ( | ) |
Definition at line 587 of file qquickcombobox.cpp.
References currentIndex, extra, highlightedIndex, isPopupVisible(), setCurrentIndex(), and setHighlightedIndex().
bool QQuickComboBoxPrivate::isPopupVisible | ( | ) | const |
Definition at line 308 of file qquickcombobox.cpp.
References popup.
Referenced by decrementCurrentIndex(), incrementCurrentIndex(), keySearch(), and popupVisibleChanged().
bool QQuickComboBoxPrivate::isValidIndex | ( | int | index | ) | const |
Definition at line 519 of file qquickcombobox.cpp.
References QQmlInstanceModel::count, and delegateModel.
void QQuickComboBoxPrivate::itemClicked | ( | ) |
Definition at line 366 of file qquickcombobox.cpp.
References delegateModel, hidePopup(), QQmlInstanceModel::indexOf(), and setHighlightedIndex().
Referenced by createdItem().
void QQuickComboBoxPrivate::itemHovered | ( | ) |
Definition at line 376 of file qquickcombobox.cpp.
References button, QQuickItemView::Contain, delegateModel, QObject::findChild(), QQuickAbstractButtonPrivate::get(), QQmlInstanceModel::indexOf(), QWidget::isEnabled(), keyNavigating, popup, setHighlightedIndex(), and QQuickControlPrivate::touchId.
Referenced by createdItem().
|
overridevirtual |
Reimplemented from QQuickItemChangeListener.
Definition at line 834 of file qquickcombobox.cpp.
References emit, indicator, item, and QQuickControlPrivate::itemImplicitHeightChanged().
|
overridevirtual |
Reimplemented from QQuickItemChangeListener.
Definition at line 816 of file qquickcombobox.cpp.
References emit, indicator, item, and QQuickControlPrivate::itemImplicitWidthChanged().
Definition at line 636 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 648 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 897 of file qquickcombobox.cpp.
References QQuickItemPrivate::componentComplete, QQuickComboBox::ContentItemImplicitWidth, hasCalculatedWidestText, implicitContentWidthPolicy, QQuickControlPrivate::updateImplicitContentWidth(), and QQuickComboBox::WidestTextWhenCompleted.
void QQuickComboBoxPrivate::modelUpdated | ( | ) |
Definition at line 420 of file qquickcombobox.cpp.
References QQuickItemPrivate::componentComplete, extra, implicitContentWidthPolicy, updateCurrentTextAndValue(), QQuickControlPrivate::updateImplicitContentSize(), and QQuickComboBox::WidestText.
Referenced by createDelegateModel().
void QQuickComboBoxPrivate::popupVisibleChanged | ( | ) |
Definition at line 341 of file qquickcombobox.cpp.
References QQuickItemView::Beginning, QObject::findChild(), hasDown, highlightedIndex, QGuiApplication::inputMethod(), isPopupVisible(), QQuickItemView::NoHighlightRange, popup, QQuickItemView::positionViewAtIndex(), pressed, QInputMethod::reset(), QQuickItemView::setHighlightRangeMode(), and updateHighlightedIndex().
Referenced by QQuickComboBox::~QQuickComboBox(), and QQuickComboBox::setPopup().
void QQuickComboBoxPrivate::setCurrentIndex | ( | int | index, |
Activation | activate | ||
) |
Definition at line 571 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 623 of file qquickcombobox.cpp.
References emit, and highlightedIndex.
Referenced by decrementCurrentIndex(), incrementCurrentIndex(), itemClicked(), itemHovered(), keySearch(), and updateHighlightedIndex().
Definition at line 824 of file qquickcombobox.cpp.
void QQuickComboBoxPrivate::showPopup | ( | ) |
Definition at line 313 of file qquickcombobox.cpp.
References executePopup(), QQuickPopup::open(), and popup.
Referenced by togglePopup().
void QQuickComboBoxPrivate::togglePopup | ( | bool | accept | ) |
Definition at line 333 of file qquickcombobox.cpp.
References hidePopup(), popup, and showPopup().
Referenced by handleRelease().
Definition at line 549 of file qquickcombobox.cpp.
References Qt::CaseInsensitive, match(), QString::size(), QString::startsWith(), and text.
Referenced by updateEditText().
void QQuickComboBoxPrivate::updateAcceptableInput | ( | ) |
Definition at line 499 of file qquickcombobox.cpp.
References QQuickControlPrivate::contentItem, emit, QQuickTextInput::hasAcceptableInput(), and m_acceptableInput.
Referenced by QQuickComboBox::contentItemChange().
void QQuickComboBoxPrivate::updateCurrentText | ( | ) |
Definition at line 464 of file qquickcombobox.cpp.
References currentIndex, currentText, displayText, emit, extra, hasDisplayText, and text.
Referenced by updateCurrentTextAndValue().
void QQuickComboBoxPrivate::updateCurrentTextAndValue | ( | ) |
Definition at line 493 of file qquickcombobox.cpp.
References updateCurrentText(), and updateCurrentValue().
Referenced by createdItem(), modelUpdated(), setCurrentIndex(), and QQuickComboBox::setModel().
void QQuickComboBoxPrivate::updateCurrentValue | ( | ) |
Definition at line 482 of file qquickcombobox.cpp.
References currentIndex, currentValue, and emit.
Referenced by updateCurrentTextAndValue().
void QQuickComboBoxPrivate::updateEditText | ( | ) |
Definition at line 443 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 618 of file qquickcombobox.cpp.
References currentIndex, popup, and setHighlightedIndex().
Referenced by popupVisibleChanged().
int QQuickComboBoxPrivate::currentIndex = -1 |
Definition at line 279 of file qquickcombobox.cpp.
Referenced by createdItem(), decrementCurrentIndex(), hidePopup(), incrementCurrentIndex(), keySearch(), setCurrentIndex(), updateCurrentText(), updateCurrentValue(), and updateHighlightedIndex().
QString QQuickComboBoxPrivate::currentText |
Definition at line 283 of file qquickcombobox.cpp.
Referenced by updateCurrentText().
QVariant QQuickComboBoxPrivate::currentValue |
Definition at line 286 of file qquickcombobox.cpp.
Referenced by updateCurrentValue().
QQmlComponent* QQuickComboBoxPrivate::delegate = nullptr |
Definition at line 289 of file qquickcombobox.cpp.
Referenced by createDelegateModel().
QQmlInstanceModel* QQuickComboBoxPrivate::delegateModel = nullptr |
Definition at line 288 of file qquickcombobox.cpp.
Referenced by calculateWidestTextWidth(), createDelegateModel(), isValidIndex(), itemClicked(), and itemHovered().
QString QQuickComboBoxPrivate::displayText |
Definition at line 284 of file qquickcombobox.cpp.
Referenced by updateCurrentText().
bool QQuickComboBoxPrivate::down = false |
Definition at line 270 of file qquickcombobox.cpp.
QLazilyAllocated<ExtraData> QQuickComboBoxPrivate::extra |
Definition at line 305 of file qquickcombobox.cpp.
Referenced by acceptInput(), decrementCurrentIndex(), incrementCurrentIndex(), modelUpdated(), setInputMethodHints(), updateCurrentText(), and updateEditText().
bool QQuickComboBoxPrivate::flat = false |
Definition at line 269 of file qquickcombobox.cpp.
bool QQuickComboBoxPrivate::hasCalculatedWidestText = false |
Definition at line 277 of file qquickcombobox.cpp.
Referenced by getContentWidth(), and maybeUpdateImplicitContentWidth().
bool QQuickComboBoxPrivate::hasCurrentIndex = false |
Definition at line 276 of file qquickcombobox.cpp.
bool QQuickComboBoxPrivate::hasDisplayText = false |
Definition at line 275 of file qquickcombobox.cpp.
Referenced by updateCurrentText().
bool QQuickComboBoxPrivate::hasDown = false |
Definition at line 271 of file qquickcombobox.cpp.
Referenced by popupVisibleChanged().
int QQuickComboBoxPrivate::highlightedIndex = -1 |
Definition at line 278 of file qquickcombobox.cpp.
Referenced by decrementCurrentIndex(), hidePopup(), incrementCurrentIndex(), keySearch(), popupVisibleChanged(), and setHighlightedIndex().
QQuickComboBox::ImplicitContentWidthPolicy QQuickComboBoxPrivate::implicitContentWidthPolicy = QQuickComboBox::ContentItemImplicitWidth |
Definition at line 280 of file qquickcombobox.cpp.
Referenced by getContentWidth(), maybeUpdateImplicitContentWidth(), and modelUpdated().
QQuickDeferredPointer<QQuickItem> QQuickComboBoxPrivate::indicator |
Definition at line 290 of file qquickcombobox.cpp.
Referenced by executeIndicator(), itemImplicitHeightChanged(), and itemImplicitWidthChanged().
bool QQuickComboBoxPrivate::keyNavigating = false |
Definition at line 274 of file qquickcombobox.cpp.
Referenced by itemHovered().
bool QQuickComboBoxPrivate::m_acceptableInput = true |
Definition at line 292 of file qquickcombobox.cpp.
Referenced by updateAcceptableInput().
QVariant QQuickComboBoxPrivate::model |
Definition at line 281 of file qquickcombobox.cpp.
Referenced by createDelegateModel().
bool QQuickComboBoxPrivate::ownModel = false |
Definition at line 273 of file qquickcombobox.cpp.
Referenced by createDelegateModel().
QQuickDeferredPointer<QQuickPopup> QQuickComboBoxPrivate::popup |
Definition at line 291 of file qquickcombobox.cpp.
Referenced by createdItem(), executePopup(), hideOldPopup(), hidePopup(), isPopupVisible(), itemHovered(), popupVisibleChanged(), showPopup(), togglePopup(), and updateHighlightedIndex().
bool QQuickComboBoxPrivate::pressed = false |
Definition at line 272 of file qquickcombobox.cpp.
Referenced by handleRelease(), and popupVisibleChanged().
QQuickItem* QQuickComboBoxPrivate::pressedItem = nullptr |
Definition at line 287 of file qquickcombobox.cpp.
QString QQuickComboBoxPrivate::textRole |
Definition at line 282 of file qquickcombobox.cpp.
Referenced by calculateWidestTextWidth(), and effectiveTextRole().
QString QQuickComboBoxPrivate::valueRole |
Definition at line 285 of file qquickcombobox.cpp.