hlp:最多添加两个计数器,编辑计数器图元,只显示当前计数器的修改tab

This commit is contained in:
kite_lucs
2026-09-19 08:16:46 +08:00
parent b7e155d063
commit a18665b5f9
16 changed files with 183 additions and 16 deletions
+2 -1
View File
@@ -296,7 +296,8 @@ void PrintTextDisplay::paintEvent(QPaintEvent *event){
if(val>base-1)jmin=Num-j-1;
base *= 10;
}
str= QString("%1").arg(val%base,Num,10,QLatin1Char('0'))+str;
int r = (base != 0) ? (val % base) : 0;
str= QString("%1").arg(r,Num,10,QLatin1Char('0'))+str;
}