hlp:最多添加两个计数器,编辑计数器图元,只显示当前计数器的修改tab
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user