2026年6月4日 commit
This commit is contained in:
@@ -45,6 +45,10 @@ BarcodeEditor::BarcodeEditor(QWidget *parent) :
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
if (m_sysPara == nullptr) {
|
||||
m_sysPara = SysPara::ins();
|
||||
}
|
||||
|
||||
applyStyleSheet();
|
||||
|
||||
m_dateFormatEditor = new DateFormatEditor();
|
||||
|
||||
@@ -52,28 +52,14 @@ void PicCounterItem::setCounter(COUNTER_TYPE type, int digitalNum)
|
||||
font.setPixelSize(pixelSize);
|
||||
font.setWeight(false && (pixelSize<=16) ? QFont::Bold : QFont::Normal);
|
||||
font.setLetterSpacing(QFont::AbsoluteSpacing, 0);
|
||||
// font.setLetterSpacing(QFont::AbsoluteSpacing, 0);
|
||||
|
||||
QFontMetrics fontMetrics(font);
|
||||
int width = (fontMetrics.horizontalAdvance("0123456789")) / 10;
|
||||
int height = font.pixelSize();
|
||||
width += letterSpace();
|
||||
|
||||
int varType1 = type;
|
||||
if(fontname.contains("SerifL") || fontname.contains("serifl"))
|
||||
varType1 = 20 + type;
|
||||
else if(fontname.contains("SerifR") || fontname.contains("serifr"))
|
||||
varType1 = 20 + type;
|
||||
else if(fontname.contains("bangla"))
|
||||
varType1 = 30 + type;
|
||||
else if(fontname.contains("biyangF"))
|
||||
varType1 = 50 + type;
|
||||
else if(fontname.contains("Roman"))
|
||||
varType1 = 60 + type;
|
||||
|
||||
setHtml(QString("<img src=\":/%1/%5/../image/digitalWidth%2.bmp\" height=\"%3\" width=\"%4\" style=\"vertical-align: bottom;\" />")
|
||||
.arg(type).arg(false && (pixelSize<=16)?(digitalNum*100 + 75):digitalNum)
|
||||
.arg(height + 1).arg(width*digitalNum).arg(varType1));
|
||||
.arg(type).arg(digitalNum).arg(height + 1).arg(width*digitalNum).arg(type));
|
||||
|
||||
m_counterType = type;
|
||||
m_digitalNum = digitalNum;
|
||||
|
||||
Reference in New Issue
Block a user