0504合并前提交

This commit is contained in:
2026-05-04 08:29:44 +08:00
parent cf53cbae35
commit a06c926162
22 changed files with 2007 additions and 390 deletions
+40
View File
@@ -0,0 +1,40 @@
#ifndef DLGBARCODEFORMAT_H
#define DLGBARCODEFORMAT_H
#include <QDialog>
#include "ViewModels.h"
namespace Ui {
class DlgBarcodeFormat;
}
struct DlgBarcodeFormatVM {
QString type = "BARCODE_128";
int height = 9;
int width = 1;
int scale = 1;
InkType inkType = INK_TYPE_BLACK;
bool txtVisible = false;
};
Q_DECLARE_METATYPE(DlgBarcodeFormatVM);
class DlgBarcodeFormat : public QDialog
{
Q_OBJECT
public:
explicit DlgBarcodeFormat(QWidget *parent = nullptr);
~DlgBarcodeFormat();
void setViewModel(DlgBarcodeFormatVM vm);
DlgBarcodeFormatVM viewModel();
private:
Ui::DlgBarcodeFormat *ui;
DlgBarcodeFormatVM m_vm;
};
#endif // DLGBARCODEFORMAT_H