Commit Graph

10686 Commits

Author SHA1 Message Date
Alejandro Martinez
81ddcd5ff8 QMetaProperty::isUser has no parameter in Qt6
And it is optional in Qt5.15
2024-01-13 15:58:44 -03:00
Alejandro Martinez
a65390167d MainWindow - Fix QColor to String invalid conversion 2024-01-13 15:55:57 -03:00
Alejandro Martinez
379743e50b Settings - fix Qt6 compatibility 2024-01-13 15:45:53 -03:00
Alejandro Martinez
d37d67520a AthletePages - explicit conversion to QUuid 2024-01-13 15:37:35 -03:00
Alejandro Martinez
628b74c974 QStandardPaths::DataLocation deprecated in Qt6
In Qt5 returns the same value as AppLocalDataLocation.
2024-01-13 15:34:11 -03:00
Alejandro Martinez
c47743fe12 Azum - SkipEmptyParts is in Qt now 2024-01-13 15:24:34 -03:00
Alejandro Martinez
8aa08973ed Azum - Fix QString compatibility for Qt6 2024-01-13 15:18:47 -03:00
Alejandro Martinez
a68c1b2356 QTextStream::setEncoding not setCodec in Qt6 2024-01-13 15:07:33 -03:00
Alejandro Martinez
c4a8f820a6 QMetaProperty::isUser has no parameter in Qt6
And it is optional in Qt5.15
2024-01-13 14:36:21 -03:00
Alejandro Martinez
831027286f Qt6: utf8 for QTextStream is the default
Complements #3953
2024-01-13 14:32:50 -03:00
Alejandro Martinez
7c8d4a3066 Replace QPalette::Background by QPalette::Window
Like #3951
2024-01-13 14:31:32 -03:00
Alejandro Martinez
8045855deb Replace deprecated QDateTime::fromTime_t
by QDateTime::fromSecsSinceEpoch
2024-01-13 13:42:12 -03:00
Alejandro Martinez
c72b7d7a4f Replace QWebEngineDownloadItem for Qt6
It was renamed as QWebEngineDownloadRequest
2024-01-13 11:36:33 -03:00
Alejandro Martinez
1807d0426e Replace QSound by QSoundEffect
QSound was deprecated for Qt6
2024-01-13 11:35:33 -03:00
Joachim Kohlhammer
556b588b3f Using one more Bluetooth enum from its namespace (#4433)
similar to #3842
2024-01-13 07:49:44 -03:00
Joachim Kohlhammer
a0d25a89a9 Removed one of two overloads for QVector<QString> and QStringList (#4432)
They are the same in Qt6
2024-01-13 03:56:52 -03:00
Andreas Buhr
0c5e4435b3 Qt6: adapt build system to accept Qt6 (#3949)
Adapts the build system to accept Qt6 and enable testing.
It accounts for webengine rename to webenginequick.
It further drags in qtcore5compat, which provides QRegExp,
QXmlInputSource, and QXmlSimpleReader. Those classes are not
part of Qt6, but they are provided in qtcore5compat to reduce
the porting effort in projects like GoldenCheetah.
Minimum supported version is Qt 5.15 now
2024-01-12 22:10:58 -03:00
Alejandro Martinez
667d483bc4 Merge branch 'andreasbuhr-replace_qdesktopwidget_usage' 2024-01-12 19:22:40 -03:00
Alejandro Martinez
9761873d7a Merge branch 'replace_qdesktopwidget_usage' of https://github.com/andreasbuhr/GoldenCheetah into andreasbuhr-replace_qdesktopwidget_usage 2024-01-12 19:21:44 -03:00
Alejandro Martinez
88746dd046 Remove usage of QGLWidget for Qt6
QGLWidget was deprecated and is removed in Qt 6
Fixes #3976
2024-01-12 16:52:20 -03:00
Joachim Kohlhammer
9c8ea778ba Removed an unused timer (#4431)
Removed a timer object of type QTime that only utilizes methods removed
in Qt6 but is never read
2024-01-12 15:26:14 -03:00
Alejandro Martinez
cf71437d79 Qt6: utf8 for QTextStream is the default
Fixes #3953
2024-01-12 11:28:30 -03:00
Andreas Buhr
fbabe2aa36 Qt6: Add QRegExp include and adapt usage (#3960) 2024-01-12 10:39:20 -03:00
Andreas Buhr
e77b3ff4d0 Replace deprecated QSignalMapper::mapped signalD
Fixes #3986

The QSignalMapper::mapped signal does not exist any more and
was replaced by mappedString, mappedInt, and mappedObject.
This patch adapts its usages and only transitions to
new style signal-slot connection syntax.
2024-01-12 09:54:13 -03:00
Andreas Buhr
58cb8954eb Qt6: QSettings defaults to UTF-8, no setIniCodec necessary (#3972) 2024-01-11 20:44:25 -03:00
Andreas Buhr
466bdf1939 There are two overloads for QStringList and QVector<QString> (#3977)
These are not required in Qt6, as QStringList is an QVector<QString>
2024-01-11 20:22:20 -03:00
Alejandro Martinez
408709c1d6 Merge branch 'andreasbuhr-more_fixes_around_margins' 2024-01-11 18:16:55 -03:00
Alejandro Martinez
e95e347653 Merge branch 'more_fixes_around_margins' of https://github.com/andreasbuhr/GoldenCheetah into andreasbuhr-more_fixes_around_margins 2024-01-11 18:13:30 -03:00
Andreas Buhr
0d8167999e Qt6: remove QStringList declaration (#3963) 2024-01-11 16:14:41 -03:00
Andreas Buhr
f396630f34 Some fixes around QString (#3970) 2024-01-11 14:11:15 -03:00
Andreas Buhr
2333d185d1 Add some necessary includes (#3981) 2024-01-11 12:41:47 -03:00
Andreas Buhr
a0582445a0 Some more workarounds about iterators which cannot +1 (#3979) 2024-01-11 11:41:08 -03:00
Andreas Buhr
b329b26507 QMap::const_iterator cannot do +1 any more. Workaround this. (#3974) 2024-01-11 10:51:35 -03:00
Andreas Buhr
d71bb540c1 Qt6: Remove usage of QHashIterator (#3969)
QHashIterator is no longer able to iterate over QMultiHash, even
though it is documented to be.
This patch removes usages of QHashIterator on QMultiHash.
2024-01-11 08:50:23 -03:00
Andreas Buhr
e2ccf121f2 workaround circular dependency for qt6 (#3980) 2024-01-11 08:19:22 -03:00
Andreas Buhr
a5f5185ceb QWebEnginePage::view was removed (#3968) 2024-01-11 04:23:08 -03:00
Andreas Buhr
107e2dbc49 Qt6: Remove call to qRegisterMetaTypeStreamOperators (#3967)
Stream operator registration is now automatic, see
https://doc.qt.io/qt-6/qtcore-changes-qt6.html
2024-01-10 20:57:20 -03:00
Andreas Buhr
31c6270b4c Qt6: replace toTime_t by toSecsSinceEpoch (#3964) 2024-01-10 20:30:09 -03:00
Andreas Buhr
5b3aadce46 Qt6: adapt checksum method (#3962) 2024-01-10 20:12:10 -03:00
Andreas Buhr
f467053763 Qt6: add QStringRef include (#3965) 2024-01-10 19:29:44 -03:00
Andreas Buhr
15d2574f1d Use factory method for QLowEnergyController (#3975)
Directly calling QLowEnergyController's constructor was deprecated
2024-01-10 17:23:19 -03:00
Andreas Buhr
360b740dad adapt SSL protocol name (#3954)
QSsl::TlsV1SslV3 has been renamed to TlsV1_0.
See
https://doc.qt.io/qt-5/qssl.html#SslProtocol-enum

This might be merged at any time.
2024-01-10 16:51:52 -03:00
Andreas Buhr
ef43590fa0 Replace QPalette::Background by QPalette::Window (#3951)
Both QPalette::Background and QPalette::Window have the value 10,
there is no difference.
See https://doc.qt.io/qt-5/qpalette.html#ColorRole-enum
2024-01-10 15:52:51 -03:00
Andreas Buhr
63c9c124ac MidButton has been renamed to MiddleButton (#3952) 2024-01-10 13:47:08 -03:00
Andreas Buhr
ec86b505fc QProcess::start(path) is deprecated - adapt code (#3948) 2024-01-10 12:48:03 -03:00
Andreas Buhr
fcbb9f8481 QWebEngineDownloadItem::path is deprecated - adapt code (#3943) 2024-01-10 12:47:32 -03:00
Andreas Buhr
05fd315359 QFileInfo::created is deprecated - adapt code (#3946) 2024-01-10 11:06:01 -03:00
Andreas Buhr
9c9d066143 QTableWidgetItem::setBackgroundColor is deprecated - adapt code (#3945) 2024-01-10 11:03:28 -03:00
Andreas Buhr
726d299ca0 QString::sprintf is deprecated - adapt code (#3944) 2024-01-10 09:58:12 -03:00
Alejandro Martinez
46545d6e72 Don't use Ctrl+C to check for new activities
Fixes #4430 introduced by ea044a0c while fixing a typo.
2024-01-10 09:30:10 -03:00