forked from qt-creator/qt-creator
QmlDesigner: ConnectionEditor hide readonly
Hide readonly properties in the ConnectionEditors target item property ComboBox. Task-number: QDS-5718 Change-Id: Idee217714d460a0a59954faf3c51641648e0657b Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
committed by
Henning Gründl
parent
e71e6b9583
commit
efa8e9fd9a
@@ -202,26 +202,26 @@ void ActionEditor::prepareConnections()
|
||||
continue;
|
||||
|
||||
const QString name = QString::fromUtf8(propertyName);
|
||||
const bool writeable = modelNode.metaInfo().propertyIsWritable(propertyName);
|
||||
TypeName type = modelNode.metaInfo().propertyTypeName(propertyName);
|
||||
if (type.contains("<cpp>."))
|
||||
type.remove(0, 6);
|
||||
|
||||
connection.properties.append(ActionEditorDialog::PropertyOption(name, type));
|
||||
connection.properties.append(ActionEditorDialog::PropertyOption(name, type, writeable));
|
||||
}
|
||||
|
||||
for (const VariantProperty &variantProperty : modelNode.variantProperties()) {
|
||||
if (variantProperty.isValid()) {
|
||||
if (variantProperty.isDynamic()) {
|
||||
if (!typeWhiteList.contains(variantProperty.dynamicTypeName()))
|
||||
continue;
|
||||
if (variantProperty.isValid() && variantProperty.isDynamic()) {
|
||||
if (!typeWhiteList.contains(variantProperty.dynamicTypeName()))
|
||||
continue;
|
||||
|
||||
const QString name = QString::fromUtf8(variantProperty.name());
|
||||
TypeName type = variantProperty.dynamicTypeName();
|
||||
if (type.contains("<cpp>."))
|
||||
type.remove(0, 6);
|
||||
const QString name = QString::fromUtf8(variantProperty.name());
|
||||
const bool writeable = modelNode.metaInfo().propertyIsWritable(variantProperty.name());
|
||||
TypeName type = variantProperty.dynamicTypeName();
|
||||
if (type.contains("<cpp>."))
|
||||
type.remove(0, 6);
|
||||
|
||||
connection.properties.append(ActionEditorDialog::PropertyOption(name, type));
|
||||
}
|
||||
connection.properties.append(ActionEditorDialog::PropertyOption(name, type, writeable));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -266,10 +266,11 @@ void ActionEditor::prepareConnections()
|
||||
continue;
|
||||
|
||||
const QString name = QString::fromUtf8(propertyName);
|
||||
const bool writeable = metaInfo.propertyIsWritable(propertyName);
|
||||
if (type.contains("<cpp>."))
|
||||
type.remove(0, 6);
|
||||
|
||||
singelton.properties.append(ActionEditorDialog::PropertyOption(name, type));
|
||||
singelton.properties.append(ActionEditorDialog::PropertyOption(name, type, writeable));
|
||||
}
|
||||
|
||||
if (!singelton.properties.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user