mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-30 22:51:16 +01:00
Compare commits
4 Commits
90395a32dd
...
5f3203d638
Author | SHA1 | Date | |
---|---|---|---|
5f3203d638 | |||
33cc1df601 | |||
5ef29bf827 | |||
6f029d81a0 |
@ -13,7 +13,7 @@ environment:
|
|||||||
OPENSSLDIR: C:\OpenSSL-v111-Win64\bin
|
OPENSSLDIR: C:\OpenSSL-v111-Win64\bin
|
||||||
NSISDEF: /DOPENSSL /DANGLE
|
NSISDEF: /DOPENSSL /DANGLE
|
||||||
- QTDIR: C:\Qt\6.5\msvc2019_64
|
- QTDIR: C:\Qt\6.5\msvc2019_64
|
||||||
OPENSSLDIR: C:\OpenSSL-v30-Win64\bin
|
OPENSSLDIR: C:\OpenSSL-v32-Win64\bin
|
||||||
NSISDEF: /DQT6 /DOPENSSL
|
NSISDEF: /DQT6 /DOPENSSL
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
2
.github/workflows/osx.yml
vendored
2
.github/workflows/osx.yml
vendored
@ -39,7 +39,7 @@ jobs:
|
|||||||
- name: Install Qt
|
- name: Install Qt
|
||||||
uses: jurplel/install-qt-action@v3
|
uses: jurplel/install-qt-action@v3
|
||||||
with:
|
with:
|
||||||
version: '6.6.1'
|
version: '6.7.0'
|
||||||
modules: qtpositioning qtserialport qtimageformats
|
modules: qtpositioning qtserialport qtimageformats
|
||||||
- name: Create localization
|
- name: Create localization
|
||||||
run: lrelease gpxsee.pro
|
run: lrelease gpxsee.pro
|
||||||
|
@ -38,22 +38,31 @@ static bool isAllUpperCase(const QString &str)
|
|||||||
{
|
{
|
||||||
if (str.isEmpty())
|
if (str.isEmpty())
|
||||||
return false;
|
return false;
|
||||||
for (int i = 0; i < str.size(); i++)
|
|
||||||
if (str.at(i).isLetter() && !(str.at(i).isUpper()
|
for (int i = 0; i < str.size(); i++) {
|
||||||
|| str.at(i) == QChar(0x00DF)))
|
QChar c(str.at(i));
|
||||||
|
if (c.isLetter() && !(c.isUpper() || c == QChar(0x00DF)))
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static QString capitalized(const QString &str)
|
static QString capitalized(const QString &str)
|
||||||
{
|
{
|
||||||
QString ret(str);
|
QString ret;
|
||||||
for (int i = 0; i < str.size(); i++)
|
|
||||||
if (i && !(str.at(i-1).isSpace() || str.at(i-1) == '('))
|
ret.resize(str.size());
|
||||||
ret[i] = str.at(i).toLower();
|
|
||||||
|
for (int i = 0; i < str.size(); i++) {
|
||||||
|
QChar last(str.at(i-1));
|
||||||
|
QChar current(str.at(i));
|
||||||
|
|
||||||
|
if (i && !(last.isSpace() || last == '('))
|
||||||
|
ret[i] = current.toLower();
|
||||||
else
|
else
|
||||||
ret[i] = str.at(i);
|
ret[i] = current;
|
||||||
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user