Handle Qt5 change from QString::sprintf to asprintf

This commit is contained in:
WandererFan
2017-09-08 11:20:43 -04:00
committed by wmayer
parent d15cd94f19
commit b9f5de85b2

View File

@@ -229,8 +229,12 @@ std::string DrawViewDimension::getFormatedValue()
pos = 0;
if ((pos = rxFormat.indexIn(specStr, 0)) != -1) {
match = rxFormat.cap(0); //entire capture of rx
#if QT_VERSION >= 0x050000
specVal = QString::asprintf(Base::Tools::toStdString(match).c_str(),val);
#else
QString qs2;
specVal = qs2.sprintf(Base::Tools::toStdString(match).c_str(),val);
#endif
}
QString repl = userVal;