修改文件换行符,修正轮班图元长度计算问题
This commit is contained in:
+40
-40
@@ -1,40 +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
|
||||
#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
|
||||
|
||||
Reference in New Issue
Block a user