We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cvv\src\stfl,function shortenString is compile error:
QString shortenString(QString &str, int maxLength, bool cutEnd, bool fill) { if (str.size() > maxLength) { if (cutEnd) { str = str.mid(0, maxLength - 1) + u8"…"; // Error } else { str = u8"…" + // Error str.mid(str.size() + 1 - maxLength, str.size()); } } else if (fill) { str = str + QString(maxLength - str.size(), ' '); } return str; }
Do not know why?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
System information (version)
Detailed description
cvv\src\stfl,function shortenString is compile error:
QString shortenString(QString &str, int maxLength, bool cutEnd, bool fill)
{
if (str.size() > maxLength)
{
if (cutEnd)
{
str = str.mid(0, maxLength - 1) + u8"…"; // Error
}
else
{
str = u8"…" + // Error
str.mid(str.size() + 1 - maxLength, str.size());
}
}
else if (fill)
{
str = str + QString(maxLength - str.size(), ' ');
}
return str;
}
Do not know why?
Steps to reproduce
The text was updated successfully, but these errors were encountered: