modify property not work

This commit is contained in:
brige 2025-07-03 07:25:56 +08:00
parent 17449baf1e
commit 0f6d6e3a72
3 changed files with 42 additions and 41 deletions

View File

@ -944,48 +944,48 @@
<context>
<name>QtConeWaveComponentManager</name>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8939"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8948"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8956"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8965"/>
<source>ConeWaveComponent</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9036"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9053"/>
<source>Height</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9043"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9060"/>
<source>Radius</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9050"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9067"/>
<source>waveCount</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9060"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9077"/>
<source>waveSpeed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9067"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9084"/>
<source>baseColor</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9074"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9091"/>
<source>waveColor</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9081"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9098"/>
<source>ringBrightAlpha</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9088"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9105"/>
<source>ringDarkAlpha</source>
<translation type="unfinished"></translation>
</message>
@ -1091,28 +1091,28 @@
<context>
<name>QtDashedLineComponentManager</name>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9280"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9289"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9297"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9306"/>
<source>DashedLineComponent</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9358"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9375"/>
<source>Start</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9365"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9382"/>
<source>End</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9372"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9389"/>
<source>Radius</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9379"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="9396"/>
<source>Color</source>
<translation type="unfinished"></translation>
</message>
@ -1128,17 +1128,17 @@
<context>
<name>QtEntityPropertyManager</name>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8386"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8398"/>
<source>Name</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8393"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8405"/>
<source>Visible</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8400"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8417"/>
<source>Transform</source>
<translation type="unfinished"></translation>
</message>
@ -1220,13 +1220,13 @@
<context>
<name>QtMeshComponetManager</name>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8514"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8523"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8531"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8540"/>
<source>MeshComponent</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8596"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8613"/>
<source>Mesh</source>
<translation type="unfinished"></translation>
</message>
@ -1275,13 +1275,13 @@
<context>
<name>QtPathComponentManager</name>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8673"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8682"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8690"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8699"/>
<source>PathComponent</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8755"/>
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8772"/>
<source>Path</source>
<translation type="unfinished"></translation>
</message>

View File

@ -2051,14 +2051,14 @@ void QtBoolPropertyManager::setValue(QtProperty* property, bool val)
data.isInitialed = true;
}
/*void (QtBoolPropertyManagerPrivate:: * setSubPropertyValue)(QtProperty*, bool) = 0;
void (QtBoolPropertyManagerPrivate:: * setSubPropertyValue)(QtProperty*, bool) = 0;
setSimpleValue<bool, QtBoolPropertyManagerPrivate, QtBoolPropertyManager, bool>(this, d_ptr.data(),
&QtBoolPropertyManager::propertyChanged,
&QtBoolPropertyManager::valueChanged,
property, val, setSubPropertyValue);*/
property, val, setSubPropertyValue);
emit propertyChanged(property);
emit valueChanged(property, data.val);
//emit propertyChanged(property);
//emit valueChanged(property, data.val);
}
void QtBoolPropertyManager::setValueOnly(QtProperty* property, bool val)
@ -8249,23 +8249,22 @@ void QtEntityPropertyManagerPrivate::slotStringChanged(QtProperty* property, QSt
}
}
void QtEntityPropertyManagerPrivate::slotBoolChanged(QtProperty* property, bool value) {
if (QtProperty* prop = m_properyToVisible.value(property, 0)) {
QEntityAttribute c = m_values[prop];
c.SetVisible(value);
q_ptr->setValue(prop, c);
}
}
void QtEntityPropertyManagerPrivate::slotTransfromChanged(QtProperty* property, QTransformAttribute value) {
if (QtProperty* prop = m_properyTotrans.value(property, 0)) {
if (QtProperty* prop = m_transToPropery.value(property, 0)) {
QEntityAttribute c = m_values[prop];
//c.SetMesh(value);
q_ptr->setValue(prop, c);
}
}
void QtEntityPropertyManagerPrivate::slotBoolChanged(QtProperty* property, bool value) {
if (QtProperty* prop = m_visibleToPropery.value(property, 0)) {
QEntityAttribute c = m_values[prop];
c.SetVisible(value);
q_ptr->setValue(prop, c);
}
}
void QtEntityPropertyManagerPrivate::slotPropertyDestroyed(QtProperty* property) {
if (QtProperty* subProp = m_nameToPropery.value(property, nullptr)) {
m_nameToPropery[subProp] = 0;

View File

@ -906,8 +906,7 @@ private:
Q_DISABLE_COPY_MOVE(QtCursorPropertyManager)
};
#pragma
#pragma endregion
#pragma region QtVec3PropertyManager
@ -1078,6 +1077,9 @@ private:
Q_DECLARE_PRIVATE(QtEntityPropertyManager)
Q_DISABLE_COPY_MOVE(QtEntityPropertyManager)
Q_PRIVATE_SLOT(d_func(), void slotStringChanged(QtProperty*, QString))
Q_PRIVATE_SLOT(d_func(), void slotBoolChanged(QtProperty*, bool))
Q_PRIVATE_SLOT(d_func(), void slotTransfromChanged(QtProperty*, QTransformAttribute))
Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty*))
};
#pragma endregion