2026-06-30_18_19 缓存
This commit is contained in:
@@ -281,7 +281,8 @@ void BarcodeEditor::applyCounterConfigToSysPara()
|
||||
m_sysPara->para.eleEyeClearCntInSynMode = (m_sysPara->para.eleEyeClearCntInSynMode & 0xdf); // CNT2 = current
|
||||
}
|
||||
|
||||
m_sysPara->devOp->writeFpgaCalandar(0);
|
||||
if(m_sysPara->devOp)
|
||||
m_sysPara->devOp->writeFpgaCalandar(0);
|
||||
}
|
||||
|
||||
void BarcodeEditor::onBtnFormatClicked()
|
||||
@@ -457,9 +458,11 @@ void BarcodeEditor::onContentChanged(QString content)
|
||||
else {
|
||||
if(ui->tabWidget->indexOf(m_counterEditor) == -1) {
|
||||
ui->tabWidget->addTab(m_counterEditor, tr(u8"计数器"));
|
||||
m_counterEditor->setViewModel(makeCounterVM(m_sysPara,
|
||||
static_cast<COUNTER_TYPE>(m_vm.counterViewModel.counterType),
|
||||
m_vm.counterViewModel.digitalNum));
|
||||
if(m_sysPara) {
|
||||
m_counterEditor->setViewModel(makeCounterVM(m_sysPara,
|
||||
static_cast<COUNTER_TYPE>(m_vm.counterViewModel.counterType),
|
||||
m_vm.counterViewModel.digitalNum));
|
||||
}
|
||||
}
|
||||
m_counterEditor->setFixedSize(ui->tabBarcode->size());
|
||||
}
|
||||
@@ -594,4 +597,4 @@ void BarcodeEditor::on_cbBoxType_currentIndexChanged(int index)
|
||||
if (index == 0) return;
|
||||
m_qrcodeFormatEditor.setCodeType(ui->cbBoxType->currentText());
|
||||
onQrcodeFormatConfirmed();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user