From cf9f46953056eb3797e4e0f71093aaf607cac289 Mon Sep 17 00:00:00 2001 From: Ezreal-S <1225336300@qq.com> Date: Fri, 23 Jan 2026 10:35:10 +0800 Subject: [PATCH] =?UTF-8?q?fix=20#90:=E5=A6=82=E6=9E=9C=E4=BD=A0=E5=9C=A8?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E8=BF=90=E8=A1=8C=E8=BF=87=E7=A8=8B=E4=B8=AD?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E8=AF=AD=E8=A8=80=EF=BC=8CQLabel=20=E5=92=8C?= =?UTF-8?q?=20QComboBox=20=E4=B8=8D=E4=BC=9A=E5=9B=A0=E4=B8=BA=E4=BD=A0?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E4=BA=86=E6=96=B0=E7=BF=BB=E8=AF=91=E5=B0=B1?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=8F=98=E8=BF=87=E6=9D=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BarcodeWidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/BarcodeWidget.cpp b/src/BarcodeWidget.cpp index b1fce4f..762fa27 100644 --- a/src/BarcodeWidget.cpp +++ b/src/BarcodeWidget.cpp @@ -1291,6 +1291,8 @@ void BarcodeWidget::retranslate() { unitLabel->setText(tr("单位:")); ppiLabel->setText(tr("PPI:")); ppiInput->setToolTip(tr("每英寸像素数(用于厘米到像素的转换)")); + unitComboBox->setItemText(unitComboBox->findData(static_cast(SizeUnit::Pixel)), tr("像素")); + unitComboBox->setItemText(unitComboBox->findData(static_cast(SizeUnit::Centimeter)), tr("厘米")); // 调用该函数触发正确的显示 renderResults(); }