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:
parent
d4b10b091c
commit
90395a32dd
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user