diff --git a/logPlus/PropertyWidget.cpp b/logPlus/PropertyWidget.cpp index 382fd8b..34c6f83 100644 --- a/logPlus/PropertyWidget.cpp +++ b/logPlus/PropertyWidget.cpp @@ -704,7 +704,7 @@ void PropertyWidget::SlotPropertyChanged( QtProperty *pProperty, const QVariant // m_formInfo->m_strLineName = strLineName; - //m_formInfo->m_strSlfName = sFilePath; + //m_formInfo->m_strSlfName = sFilePath; m_formInfo->update(); //改变固井曲线名 @@ -1880,6 +1880,7 @@ void PropertyWidget::SlotPropertyChanged( QtProperty *pProperty, const QVariant m_bSelfChange=true; QtVariantProperty *tempProperty = (QtVariantProperty*)it.key(); tempProperty->setValue(""); + break; } } //通知界面缩放 @@ -2045,6 +2046,22 @@ void PropertyWidget::SlotPropertyChanged( QtProperty *pProperty, const QVariant // m_formInfo->m_strLineName = strLineName; //m_formInfo->m_strSlfName = sFilePath; + //显示名称,替换曲线名 + if(m_formInfo->m_strAliasName.contains(strOldLineName)) + { + m_formInfo->m_strAliasName.replace(strOldLineName, strLineName); + // + for (auto it = m_propertyData.constBegin(); it != m_propertyData.constEnd(); ++it) + { + if(it.value()=="显示名称") + { + m_bSelfChange=true; + QtVariantProperty *tempProperty = (QtVariantProperty*)it.key(); + tempProperty->setValue(m_formInfo->m_strAliasName); + break; + } + } + } m_formInfo->update(); //改变曲线名