1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-30 22:51:16 +01:00

Improve the capitalization algorithm

This commit is contained in:
Martin Tůma 2024-04-14 17:33:49 +02:00
parent d4b10b091c
commit 90395a32dd

View File

@ -50,7 +50,7 @@ static QString capitalized(const QString &str)
{ {
QString ret(str); QString ret(str);
for (int i = 0; i < str.size(); i++) for (int i = 0; i < str.size(); i++)
if (i && !str.at(i-1).isSpace()) if (i && !(str.at(i-1).isSpace() || str.at(i-1) == '('))
ret[i] = str.at(i).toLower(); ret[i] = str.at(i).toLower();
else else
ret[i] = str.at(i); ret[i] = str.at(i);