1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-27 21:24:47 +01:00

Compare commits

..

4 Commits

Author SHA1 Message Date
5f3203d638 Switched the OS X Qt6 build to Qt 6.7.0 2024-04-15 00:03:09 +02:00
33cc1df601 Update to OpenSSL 3.2 2024-04-14 23:49:40 +02:00
5ef29bf827 Some more code cleanup 2024-04-14 23:32:44 +02:00
6f029d81a0 Code cleanup 2024-04-14 22:15:30 +02:00
3 changed files with 19 additions and 10 deletions

View File

@ -13,7 +13,7 @@ environment:
OPENSSLDIR: C:\OpenSSL-v111-Win64\bin
NSISDEF: /DOPENSSL /DANGLE
- QTDIR: C:\Qt\6.5\msvc2019_64
OPENSSLDIR: C:\OpenSSL-v30-Win64\bin
OPENSSLDIR: C:\OpenSSL-v32-Win64\bin
NSISDEF: /DQT6 /DOPENSSL
install:

View File

@ -39,7 +39,7 @@ jobs:
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: '6.6.1'
version: '6.7.0'
modules: qtpositioning qtserialport qtimageformats
- name: Create localization
run: lrelease gpxsee.pro

View File

@ -38,22 +38,31 @@ static bool isAllUpperCase(const QString &str)
{
if (str.isEmpty())
return false;
for (int i = 0; i < str.size(); i++)
if (str.at(i).isLetter() && !(str.at(i).isUpper()
|| str.at(i) == QChar(0x00DF)))
for (int i = 0; i < str.size(); i++) {
QChar c(str.at(i));
if (c.isLetter() && !(c.isUpper() || c == QChar(0x00DF)))
return false;
}
return true;
}
static QString capitalized(const QString &str)
{
QString ret(str);
for (int i = 0; i < str.size(); i++)
if (i && !(str.at(i-1).isSpace() || str.at(i-1) == '('))
ret[i] = str.at(i).toLower();
QString ret;
ret.resize(str.size());
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
ret[i] = str.at(i);
ret[i] = current;
}
return ret;
}