2026年6月25日 暂存
This commit is contained in:
@@ -7,6 +7,7 @@ DlgQrcodeFormat::DlgQrcodeFormat(QWidget *parent) :
|
||||
{
|
||||
ui->setupUi(this);
|
||||
setViewModel(m_vm);
|
||||
ui->comboBoxType->setEnabled(false);
|
||||
}
|
||||
|
||||
DlgQrcodeFormat::~DlgQrcodeFormat()
|
||||
@@ -31,3 +32,9 @@ DlgQrcodeFormatVM DlgQrcodeFormat::viewModel()
|
||||
m_vm.size = QRCodeSize(ui->comboBox_DMType->currentIndex());
|
||||
return m_vm;
|
||||
}
|
||||
|
||||
void DlgQrcodeFormat::setCodeType(QString type)
|
||||
{
|
||||
// type = "QRCode" "DataMatrix"
|
||||
ui->comboBoxType->setCurrentText(type);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user