diff options
author | Kai Köhne <kai.koehne@qt.io> | 2022-02-09 10:56:51 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-02-15 08:03:18 +0000 |
commit | 98294034fe7bda665deb3a949fb0d0710762da3d (patch) | |
tree | 5b50842af5b91d213eaf904e7ba9759a9838eade | |
parent | af4da82dc321a6a70f3d968889aa9bd3b42da61e (diff) |
Doc: Add documentation for ComboBox::valueAt()
Fixes: QTBUG-100380
Change-Id: I03d99ef05577bfce7c6a39ed5bfdecac33ce7911
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
(cherry picked from commit 3bb7cf64994c3b43243b6d000d051f99fdaae03e)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/quicktemplates2/qquickcombobox.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/quicktemplates2/qquickcombobox.cpp b/src/quicktemplates2/qquickcombobox.cpp index e38259d14e..a18407afc4 100644 --- a/src/quicktemplates2/qquickcombobox.cpp +++ b/src/quicktemplates2/qquickcombobox.cpp @@ -1663,6 +1663,15 @@ QVariant QQuickComboBox::currentValue() const return d->currentValue; } +/*! + \readonly + \since QtQuick.Controls 2.14 (Qt 5.14) + \qmlmethod var QtQuick.Controls::ComboBox::valueAt(int index) + + Returns the value at position \a index in the combo box. + + \sa indexOfValue +*/ QVariant QQuickComboBox::valueAt(int index) const { Q_D(const QQuickComboBox); @@ -1683,7 +1692,7 @@ QVariant QQuickComboBox::valueAt(int index) const \include qquickcombobox.qdocinc functions-after-component-completion - \sa find(), currentValue, currentIndex, valueRole + \sa find(), currentValue, currentIndex, valueRole, valueAt */ int QQuickComboBox::indexOfValue(const QVariant &value) const { |