2026年6月22日 :大量更新
This commit is contained in:
+9
-5
@@ -29,10 +29,6 @@ TestPrintWidget::TestPrintWidget(QWidget* parent)
|
||||
// 加载UI文件
|
||||
ui.setupUi(this);
|
||||
|
||||
if (sysPara == nullptr) {
|
||||
sysPara = SysPara::ins();
|
||||
}
|
||||
|
||||
// 关联成员变量到UI控件
|
||||
// m_TextEdit = ui.m_TextEdit;
|
||||
m_LineEdit = ui.m_LineEdit;
|
||||
@@ -230,6 +226,14 @@ TestPrintWidget::TestPrintWidget(QWidget* parent)
|
||||
// ui.btnList->hide();
|
||||
}
|
||||
|
||||
void TestPrintWidget::bindSysPara(SysPara *sysPara)
|
||||
{
|
||||
this->sysPara = sysPara;
|
||||
|
||||
// 它需要这个
|
||||
m_barcodeEditor.bindSysPara(sysPara);
|
||||
}
|
||||
|
||||
TestPrintWidget::~TestPrintWidget()
|
||||
{
|
||||
if(m_pSavePicScene)
|
||||
@@ -931,7 +935,7 @@ void TestPrintWidget::onSceneAccepted(PicTextItem *pTextItem){
|
||||
// //fmt.setFontWordSpacing(sysPara->para.textEditCharSpace);
|
||||
// fmt.setFontLetterSpacing(sysPara->para.textEditCharSpace); qDebug() << sysPara->para.textEditCharSpace;
|
||||
// mergeFormatOnWordOrSelection(fmt);
|
||||
pTextItem->setLetterSpace(sysPara->para.textEditCharSpace);
|
||||
// pTextItem->setLetterSpace(sysPara->para.textEditCharSpace);
|
||||
sysPara->saveParaToFile();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user