2026年6月4日 commit
This commit is contained in:
+7
-11
@@ -12,9 +12,14 @@ OtherInfo::OtherInfo(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
ui(new Ui::OtherInfo)
|
||||
{
|
||||
|
||||
ui->setupUi(this);
|
||||
lockPhaseFlag = false;
|
||||
|
||||
if (sysPara == nullptr) {
|
||||
sysPara = SysPara::ins();
|
||||
lockPhaseFlag = sysPara->para.phaseByHand != 0;
|
||||
updateLockPhaseWidgets();
|
||||
}
|
||||
|
||||
lockedPhase = 0;
|
||||
ui->memDisplayAndEdit->setHidden(1);
|
||||
|
||||
@@ -57,15 +62,6 @@ void OtherInfo::OtherupdateSysParaToUI(){
|
||||
}
|
||||
|
||||
#define PHASE_BY_HAND_DIV 8 //相位会在逻辑里面放大
|
||||
void OtherInfo::bindSysPara(SysPara *sysPara){
|
||||
this->sysPara = sysPara;
|
||||
ui->phaseGraphic->bindSysPara(sysPara);
|
||||
ui->memDisplayAndEdit->bindSysPara(sysPara);
|
||||
lockPhaseFlag = sysPara->para.phaseByHand != 0;
|
||||
updateLockPhaseWidgets();
|
||||
}
|
||||
|
||||
|
||||
void OtherInfo::init()
|
||||
{
|
||||
// 应用样式表
|
||||
|
||||
Reference in New Issue
Block a user