Files
VX5_KRO_GearPump/scene/DlgBarcodeFormat.h
T
2026-05-04 08:29:44 +08:00

41 lines
748 B
C++

#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