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
qdeclarativepluginparameter.cpp
Go to the documentation of this file.
1// Copyright (C) 2019 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
7
70
72
74{
75 if (!name_.isEmpty() || name.isEmpty())
76 return;
77
78 name_ = name;
79
80 emit nameChanged(name_);
81 if (value_.isValid())
83}
84
86{
87 return name_;
88}
89
91{
92 if (value_.isValid() || !value.isValid() || value.isNull())
93 return;
94
95 value_ = value;
96
97 emit valueChanged(value_);
98 if (!name_.isEmpty())
100}
101
103{
104 return value_;
105}
106
108{
109 return !name_.isEmpty() && value_.isValid();
110}
111
113
114#include "moc_qdeclarativepluginparameter_p.cpp"
QDeclarativePluginParameter(QObject *parent=0)
\qmltype PluginParameter \inqmlmodule QtPositioning
void valueChanged(const QVariant &value)
void nameChanged(const QString &name)
\inmodule QtCore
Definition qobject.h:103
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
bool isEmpty() const noexcept
Returns true if the string has no characters; otherwise returns false.
Definition qstring.h:192
\inmodule QtCore
Definition qvariant.h:65
bool isValid() const
Returns true if the storage type of this variant is not QMetaType::UnknownType; otherwise returns fal...
Definition qvariant.h:714
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLuint name
#define emit