修改文件换行符,修正轮班图元长度计算问题

This commit is contained in:
2026-08-19 11:55:10 +08:00
parent 176b53b654
commit a274b75705
116 changed files with 68711 additions and 68660 deletions
+40 -40
View File
@@ -1,40 +1,40 @@
#include "DlgQrcodeFormat.h"
#include "ui_DlgQrcodeFormat.h"
DlgQrcodeFormat::DlgQrcodeFormat(QWidget *parent) :
QDialog(parent),
ui(new Ui::DlgQrcodeFormat)
{
ui->setupUi(this);
setViewModel(m_vm);
ui->comboBoxType->setEnabled(false);
}
DlgQrcodeFormat::~DlgQrcodeFormat()
{
delete ui;
}
void DlgQrcodeFormat::setViewModel(DlgQrcodeFormatVM vm)
{
m_vm = vm;
ui->comboBoxType->setCurrentIndex(int(vm.type));
ui->comboBoxInkColor->setCurrentIndex(int(vm.inkType));
ui->comboBox_DMType->setCurrentIndex(int(vm.size));
ui->comboBox_QRCodeLevel->setCurrentIndex(int(vm.level));
}
DlgQrcodeFormatVM DlgQrcodeFormat::viewModel()
{
m_vm.type = QRCodeType(ui->comboBoxType->currentIndex());
m_vm.inkType = InkType(ui->comboBoxInkColor->currentIndex());
m_vm.level = QRCodeLevel(ui->comboBox_QRCodeLevel->currentIndex());
m_vm.size = QRCodeSize(ui->comboBox_DMType->currentIndex());
return m_vm;
}
void DlgQrcodeFormat::setCodeType(QString type)
{
// type = "QRCode" "DataMatrix"
ui->comboBoxType->setCurrentText(type);
}
#include "DlgQrcodeFormat.h"
#include "ui_DlgQrcodeFormat.h"
DlgQrcodeFormat::DlgQrcodeFormat(QWidget *parent) :
QDialog(parent),
ui(new Ui::DlgQrcodeFormat)
{
ui->setupUi(this);
setViewModel(m_vm);
ui->comboBoxType->setEnabled(false);
}
DlgQrcodeFormat::~DlgQrcodeFormat()
{
delete ui;
}
void DlgQrcodeFormat::setViewModel(DlgQrcodeFormatVM vm)
{
m_vm = vm;
ui->comboBoxType->setCurrentIndex(int(vm.type));
ui->comboBoxInkColor->setCurrentIndex(int(vm.inkType));
ui->comboBox_DMType->setCurrentIndex(int(vm.size));
ui->comboBox_QRCodeLevel->setCurrentIndex(int(vm.level));
}
DlgQrcodeFormatVM DlgQrcodeFormat::viewModel()
{
m_vm.type = QRCodeType(ui->comboBoxType->currentIndex());
m_vm.inkType = InkType(ui->comboBoxInkColor->currentIndex());
m_vm.level = QRCodeLevel(ui->comboBox_QRCodeLevel->currentIndex());
m_vm.size = QRCodeSize(ui->comboBox_DMType->currentIndex());
return m_vm;
}
void DlgQrcodeFormat::setCodeType(QString type)
{
// type = "QRCode" "DataMatrix"
ui->comboBoxType->setCurrentText(type);
}