2026年6月25日 暂存
This commit is contained in:
+10
-1
@@ -345,7 +345,7 @@ void BarcodeEditor::onBarcodeFormatConfirmed()
|
||||
void BarcodeEditor::onQrcodeFormatConfirmed()
|
||||
{
|
||||
m_vm.format.setValue(m_qrcodeFormatEditor.viewModel());
|
||||
m_vm.type = BARCODE_TYPE_QRCODE;
|
||||
// m_vm.type = BARCODE_TYPE_QRCODE;
|
||||
|
||||
auto b = ui->cbBoxType->blockSignals(true);
|
||||
ui->cbBoxType->setCurrentIndex(int(m_vm.type));
|
||||
@@ -586,3 +586,12 @@ QString BarcodeViewModel::toString(const BarcodeViewModel &vm)
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
void BarcodeEditor::on_cbBoxType_currentIndexChanged(int index)
|
||||
{
|
||||
//bar 0; qr 1; dm 2;
|
||||
m_vm.type = index;
|
||||
if (index == 0) return;
|
||||
m_qrcodeFormatEditor.setCodeType(ui->cbBoxType->currentText());
|
||||
onQrcodeFormatConfirmed();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user