chore: 清理PEBI参数面板帮助框残留

feature/prepost-render-refactor
lh 2 weeks ago
parent f90ad5b1a1
commit c7bafd1c9f

@ -63,9 +63,6 @@ public:
public slots:
// help msg
virtual void slotHelpMsg(QString& s);
/// @brief 响应参数控件值改变,并转发给数据注册表
virtual void slotParaCtrlValueChanged(QString sPara, QVariant o);
@ -93,9 +90,6 @@ protected:
QStringList m_listParas;
nmGridRowUtils* m_pGridItemUtils;
// Help
QTextEdit* m_pHelpBox;
// 数据管理器引用(用于全量重建面板时获取井和几何对象列表)
nmDataAnalyzeManager* m_pDataManager;

@ -193,7 +193,6 @@ nmWxParaPropertyPebi::nmWxParaPropertyPebi(QWidget* parent) :
m_pMainLayout = nullptr;
m_listParas.clear();
m_pGridItemUtils = nullptr;
m_pHelpBox = nullptr;
m_pDataManager = nullptr;
setWindowTitle(tr("Numerical para property"));
@ -240,11 +239,6 @@ void nmWxParaPropertyPebi::initUI()
pLayoutBk->setMargin(0);
pLayoutBk->addWidget(pArea);
if (nullptr != m_pHelpBox)
{
pLayoutBk->addWidget(m_pHelpBox);
}
setLayout(pLayoutBk);
}
}
@ -277,8 +271,6 @@ void nmWxParaPropertyPebi::refreshUIs(QStringList& listParas, bool bReserveOlds
Q_ASSERT(nullptr != m_pGridItemUtils);
m_pGridItemUtils->setParent(this);
m_pGridItemUtils->setParaSrcTag(s_Nm_Serie);
connect(m_pGridItemUtils, SIGNAL(sigHelpMsg(QString&)),
this, SLOT(slotHelpMsg(QString&)));
m_pMainLayout->addWidget(m_pGridItemUtils);
m_pGridItemUtils->setWellNames(mapObjectNames);
m_pGridItemUtils->buildRowUtils(listParas, false, this);
@ -661,10 +653,6 @@ void nmWxParaPropertyPebi::rebuildResultParas()
{
m_pGridItemUtils->setItemsReadonly(true);
}
if (m_pHelpBox != nullptr)
{
m_pHelpBox->hide();
}
}
bool nmWxParaPropertyPebi::getParaValue(QString sPara, QVariant& o)
@ -748,16 +736,6 @@ void nmWxParaPropertyPebi::onDeserialize(ZxSerializer* ser)
m_bUnableSP = false;
}
// help msg
void nmWxParaPropertyPebi::slotHelpMsg(QString& s)
{
if (nullptr == m_pHelpBox)
{
return;
}
m_pHelpBox->setHtml(s);
}
void nmWxParaPropertyPebi::paintEvent(QPaintEvent* e)
{
iDlgBase::paintEvent(e);

Loading…
Cancel
Save