2026-06-30_18_19 缓存

This commit is contained in:
2026-07-01 08:16:05 +08:00
parent 14d97b9bcb
commit ea3c3fb234
8 changed files with 248 additions and 16 deletions
+8 -5
View File
@@ -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();
}
}
+4
View File
@@ -136,6 +136,10 @@ void PicScene::onFocusItemChanged(QGraphicsItem *newFocusItem, QGraphicsItem *ol
return;
}
connect(currFocusItem, &QObject::destroyed, this, [this](){
currFocusItem = nullptr;
});
QPoint pos(currFocusItem->x(), currFocusItem->y());
emit focusedItemPosChanged(pos);