From 57823699a3281d0c407be923f58590417d51d108 Mon Sep 17 00:00:00 2001 From: jiayulong Date: Tue, 19 May 2026 15:29:45 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=89=E6=8B=A9=E6=9B=B2=E7=BA=BF=E5=90=8D?= =?UTF-8?q?=E6=94=B9=E5=8F=98=E5=90=8E=EF=BC=8C=E6=98=BE=E7=A4=BA=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E4=B9=9F=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logPlus/PropertyWidget.cpp | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) 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(); //改变曲线名