新二维码/条形码编辑逻辑
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include <QSharedPointer>
|
||||
#include "SysPara.h"
|
||||
#include <QMap>
|
||||
#include <QXmlStreamAttributes>
|
||||
|
||||
enum InkType {
|
||||
INK_TYPE_BLACK,
|
||||
@@ -32,6 +33,9 @@ struct CounterViewModel {
|
||||
int letterSpace = 2;
|
||||
int charWidth = 0; // 字符宽度,仅在 enbCustomCharWidth == true 时有意义
|
||||
bool enbCustomCharWidth = false;
|
||||
|
||||
static void loadFromXml(CounterViewModel& vm, const QXmlStreamAttributes& attrs);
|
||||
static void saveToXml(CounterViewModel& vm, QXmlStreamAttributes& attrs);
|
||||
};
|
||||
|
||||
Q_DECLARE_METATYPE(CounterViewModel);
|
||||
@@ -52,6 +56,8 @@ struct DateItemModel {
|
||||
QStringList hoursMap;
|
||||
|
||||
static DateItemModel createDefaultReplaceModel();
|
||||
static void loadFromXml(DateItemModel& vm, const QXmlStreamAttributes& attrs);
|
||||
static void saveToXml(const DateItemModel& vm, QXmlStreamAttributes& attrs);
|
||||
};
|
||||
|
||||
Q_DECLARE_METATYPE(DateItemModel);
|
||||
|
||||
Reference in New Issue
Block a user