0504合并前提交
This commit is contained in:
@@ -1,31 +1,5 @@
|
||||
#include "ViewModels.h"
|
||||
|
||||
BarcodeViewModel::BarcodeViewModel(QObject *parent)
|
||||
: QObject(parent)
|
||||
{
|
||||
}
|
||||
|
||||
void BarcodeViewModel::setContentPattern(const QString &contentPattern)
|
||||
{
|
||||
if (m_contentPattern == contentPattern)
|
||||
return;
|
||||
|
||||
m_contentPattern = contentPattern;
|
||||
emit contentPatternChanged();
|
||||
}
|
||||
|
||||
void BarcodeViewModel::setCounterViewModel(CounterViewModel counterViewModel)
|
||||
{
|
||||
m_counterViewModel = std::move(counterViewModel);
|
||||
emit counterViewModelChanged();
|
||||
}
|
||||
|
||||
void BarcodeViewModel::setDateViewModel(DateItemModel dateViewModel)
|
||||
{
|
||||
m_dateViewModel = std::move(dateViewModel);
|
||||
emit dateViewModelChanged();
|
||||
}
|
||||
|
||||
DateItemModel DateItemModel::createDefaultReplaceModel()
|
||||
{
|
||||
DateItemModel model;
|
||||
|
||||
Reference in New Issue
Block a user