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>.
Loading...
Searching...
No Matches
qdeclarativecontactdetails.cpp
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
5
6#include <QPlaceContactDetail>
7
9
67QDeclarativeContactDetails::QDeclarativeContactDetails(QObject *parent)
68 : QQmlPropertyMap(parent)
69{
70}
71
73{
74 if (input.metaType() == QMetaType::fromType<QPlaceContactDetail>()) {
75 QVariantList varList;
76 varList.append(input);
77 return varList;
78 }
79
80 return input;
81}
82
QML_UNCREATABLE("ContactDetails instances cannot be instantiated. " "Only Place types have ContactDetails and they cannot " "be re-assigned (but can be modified).") public QVariant updateValue(const QString &key, const QVariant &input) override
Returns the new value to be stored for the key key.
void append(parameter_type t)
Definition qlist.h:458
\inmodule QtCore
Definition qobject.h:103
The QQmlPropertyMap class allows you to set key-value pairs that can be used in QML bindings.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
\inmodule QtCore
Definition qvariant.h:65
Combined button and popup list for selecting options.
GLenum GLenum GLenum input