2 Commits

Author SHA1 Message Date
563d9c5487 value_tree_translator: add toolTip 2026-01-22 11:48:29 +03:00
34bc322b9b version 5.5.3
force using '.' instead of ',' in PIString::fromNumber()
2025-10-22 15:24:10 +03:00
3 changed files with 6 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ endif()
project(PIP)
set(PIP_MAJOR 5)
set(PIP_MINOR 5)
set(PIP_REVISION 2)
set(PIP_REVISION 3)
set(PIP_SUFFIX )
set(PIP_COMPANY SHS)
set(PIP_DOMAIN org.SHS)

View File

@@ -206,7 +206,10 @@ PIString PIString::dtos(const double num, char format, int precision) {
if (wr > 4) wr = 4;
f[2 + wr] = format;
f[3 + wr] = 0;
pisprintf(f, num);
char ch[256];
piZeroMemory(ch, 256);
snprintf(ch, 256, f, num);
return PIStringAscii(ch).replaceAll(',', '.');
}
#undef pisprintf

View File

@@ -72,7 +72,7 @@ const PIString contextName = "QAD::PIValueTreeEdit";
void gatherStrings(TSFile::Context & context, const PIValueTree & vt, const PIString & loc) {
const static PIStringList attrs({Attribute::prefix, Attribute::suffix});
const static PIStringList attrs({Attribute::prefix, Attribute::suffix, Attribute::toolTip});
for (const auto & c: vt.children()) {
context.confirm(c.name(), loc);
context.confirm(c.comment(), loc);