Commit Graph

10718 Commits

Author SHA1 Message Date
Alejandro Martinez
ca6c6ffcd1 Fix crash on DataFilter aggregate when by is empty
Continuation of previous commit, the empty result
can also be non numeric.
2024-01-22 19:22:39 -03:00
Alejandro Martinez
46c6ee1d91 Fix crash on DataFilter aggregate when by is empty
Since the empty Result has type number, adding an empty string
to the list is ignored by asString, adding number which is 0
in this case, fixes the issue.
Reported Marcen at the users forum.
2024-01-22 10:14:05 -03:00
Alejandro Martinez
573967fe47 GenericSelectTool - Avoid crash
Don't dereference the end() iterator
2024-01-18 15:03:26 -03:00
grauser
a4cc418b6e Add include 2024-01-18 17:37:44 +01:00
Alejandro Martinez
42aa24108c Revert "There are two overloads for QStringList and QVector<QString> (#3977)"
This reverts commit 466bdf1939.
PythonChart connect failed without the removed overload,
as reported in #3893
2024-01-18 11:47:01 -03:00
grauser
0be34094aa No more QSysInfo:MacVersion 2024-01-18 15:25:57 +01:00
Alejandro Martinez
acd76507e2 Replace QButtonGroup::buttonClicked(int) by idClicked(int)
Deprecated in Qt6
2024-01-18 10:54:55 -03:00
Damien Grauser
154d93a8df QTBUG-32789 was resolved 2024-01-18 13:32:19 +01:00
Damien Grauser
b47b72b013 QT6 : no more macextras 2024-01-18 13:31:43 +01:00
Alejandro Martinez
b12984b94c Fix typo from previous commit 2024-01-17 17:39:04 -03:00
Alejandro Martinez
dc4e26fbf5 From Qt 6.6 qint128 is a typedef
https://doc.qt.io/qt-6/qttypes.html#qint128-typedef
2024-01-17 15:20:28 -03:00
Alejandro Martinez
eb2ba14c68 QDomDocument::ParseResult introduced in Qt 6.5
QDomDocument::setContent now requires explicit bool conversion.
https://doc.qt.io/qt-6/qdomdocument.html#setContent
2024-01-17 09:59:06 -03:00
Alejandro Martinez
c553de5216 Replace QRegExpValidator by QRegularExpressionValidator
And QRegExp by QRegularExpression, they were deprecated.
2024-01-16 14:56:01 -03:00
Alejandro Martinez
e95608e4bc QByteArray::append(const QString &str) a is deprecated
The Unicode data was converted into 8-bit characters using
QString::toUtf8(), now it must be explicit.
2024-01-16 14:38:19 -03:00
Alejandro Martinez
21faf53d3c Change QDate to QDateTime conversions, specifying time
The QDateTime constructor taking a QDate as argument is deprecated.
QDate::startOfDay() should be used instead when converting a QDate
to a QDateTime. This makes clear what time is used in this conversion.
2024-01-16 14:22:06 -03:00
Alejandro Martinez
894eb421e3 QTableWidgetItem::setBackgroundColor is deprecated - adapt code 2024-01-16 14:11:00 -03:00
Alejandro Martinez
4b4006002e Replace QWheelEvent::delta by angleDelta 2024-01-16 10:35:24 -03:00
Alejandro Martinez
95b4a4969c R - Replace QRegExp by QRegularExpression 2024-01-16 10:34:41 -03:00
Alejandro Martinez
8e2eb3fc18 Remove duplicate include from previous commit 2024-01-16 10:01:35 -03:00
Alejandro Martinez
1f999a3957 Python - Replace QRegExp by QRegularExpression 2024-01-15 15:04:09 -03:00
Alejandro Martinez
c054d7c11a Adapt to signal names in QWebEngineDownloadRequest
They changed from QWebEngineDownloadItem, deprecated in Qt6
2024-01-15 10:46:16 -03:00
Alejandro Martinez
4e03b7d15f Bluetooh error signal renamed errorOccurred in Qt6 2024-01-15 09:44:05 -03:00
Alejandro Martinez
f138839d0f Angle is not available on Qt6
https://doc.qt.io/qt-6/opengl-changes-qt6.html#removal-of-angle
2024-01-14 17:35:35 -03:00
Joachim Kohlhammer
138c68a4e6 Qt6: Fixed connections (#4436)
In UserChart and DownloadRideDialog the deprecated signal QComboBox::currentIndexChanged(QString)
was connected to a slot without parameters. In Qt6 this created a warning.
Changed to signal QComboBox::currentIndexChanged(int)
2024-01-14 12:44:29 -03:00
Joachim Kohlhammer
b9e6542a90 Prevent the use of a deleted QVariant constructor (#4435)
In Qt6.4++, the templated constructor QVariant(T) is marked as =delete,
making compilation fail. By casting the return value to (const char*),
the right QVariant constructor is explicitly selected
2024-01-14 10:08:29 -03:00
Joachim Kohlhammer
bf28d7398c Fixed a crash in RideMapWindow (#4437)
Fixed a crash when dereferencing const_end()-iterator while searching
latest selected interval
2024-01-14 08:29:13 -03:00
Alejandro Martinez
1fb92d1bf5 Recognize Andreas Buhr
Great work adapting GoldenCheetah code to Qt6
https://github.com/GoldenCheetah/GoldenCheetah/commits?author=andreasbuhr
2024-01-13 16:51:25 -03:00
Alejandro Martinez
6407ada035 Add Moc include for Perspective property
In the line of #3980
2024-01-13 16:44:39 -03:00
Alejandro Martinez
646b2151f5 WebPageWindows - Fix typo
Introduced by c72b7d7a4f
2024-01-13 16:31:56 -03:00
Alejandro Martinez
35bd666bf2 Computriner - remove deprecated QString::midRef 2024-01-13 16:22:21 -03:00
Alejandro Martinez
153e83fa1d Fix std::min type ambiguity 2024-01-13 16:17:24 -03:00
Alejandro Martinez
c14891aba0 MergeActivityWizard - Fix conversion error
The variable was unused anyway
2024-01-13 16:05:00 -03:00
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