Commit Graph

10742 Commits

Author SHA1 Message Date
Alejandro Martinez
ecdfe0c4e2 Deprecate export to KML files
Related to #3983, see discussion there for the rationale.
2024-03-01 15:22:29 -03:00
Alejandro Martinez
2b5f1d749b Enable Pace metric for Walking 2024-02-28 17:12:36 -03:00
Alejandro Martinez
663fd7833a Rename fatigue zones for consistency
Fixes #4434
2024-02-28 16:19:50 -03:00
Joachim Kohlhammer
2afd38cb30 Initialized mode when parsing a zwo-file (#4448)
When zwo workout files are read, mode was not set but the original value
kept. This could lead to wrong perspective switches in Train-mode.
2024-02-20 14:09:57 -03:00
Joachim Kohlhammer
a0b6b17072 Fixed some valgrind findings (#4445)
Fixed some findings of valgrind (a tool to detect memory management bugs):
* Mismatched free() / delete / delete [] (HrPwPlot.cpp)
* Conditional jump or move depends on uninitialised value(s) (other files)
2024-02-09 20:58:35 -03:00
Alejandro Martinez
f174d74dcd Fix memory leak in SplitActivityWizard 2024-02-09 10:06:06 -03:00
Alejandro Martinez
35433b4f65 Add assignment operators to some classes (#3937)
The implicitly defined assignment operator for classes having custom
defined copy constructor is deprecated.
This patch adds explicit assignment operators.
XDataSeries assignment operator now deletes XDataPoints pointed by
datapoints array in the target and creates new ones for the source,
this required a change in the way XDataSeries is used in JSON parser,
which was based on default assignment operator semantics.
2024-02-09 10:02:39 -03:00
Alejandro Martinez
81fc763a4f Revert "Merge branch 'add_assignment_operator' of https://github.com/andreasbuhr/GoldenCheetah into andreasbuhr-add_assignment_operator"
This reverts commit 4e09cd0717, reversing
changes made to 0c4107d78b.
2024-02-05 17:53:06 -03:00
Alejandro Martinez
f2291f4522 Merge branch 'andreasbuhr-add_assignment_operator' 2024-02-04 19:19:03 -03:00
Alejandro Martinez
4e09cd0717 Merge branch 'add_assignment_operator' of https://github.com/andreasbuhr/GoldenCheetah into andreasbuhr-add_assignment_operator 2024-02-04 19:18:42 -03:00
Alejandro Martinez
0c4107d78b Qt6 - Replace deprecated 2 parameters qChecksum 2024-02-04 17:44:27 -03:00
Gabriel M. Beddingfield
d335ff425c Charts/PfPvPlot (QA): allow vertical scales up to 2500N (#4444)
The vertical axis on the QA plots (pedal force, Newtons) was stuck at
600N, even if the ride data exceeded it. The code that calculated the
max force for the activity was apperently trying to throw out outliers
(defined as "more than 2500N" -- 562 lbf)... but when finding the "max
force" the value was seems to have accidentally been typed in as
"255". This created logically dead code:

    maxAEPF = 600;
    ...
    if (aepf < 255 && aepf > maxAEPF) maxAEPF = aepf;

Thus, the max is never updated.

This patch changes the filter value from 255 to 2500 (as is indicated
to be the intent elsewhere in the source file).
2024-02-04 17:04:52 -03:00
Alejandro Martinez
76922846f8 Update snapshot builds
Functional changes from last snapshot:
b3df63378 Drag and Drop Images onto a ride
50c305b7f bluetooth FTMS fix to get device speed  (#4440)
bd751988e Add Context help for Create/Edit User Metrics
809d72d00 MainWindow gets drag/drop from Overview
46545d6e7 Don't use Ctrl+C to check for new activities
07d1197c6 Update German Translation

There are also lot of changes related to QT6 refactor but,
in principle, they should not affect snapshot builds using Qt5.15

Previous changes from v3.6 release
ee39d19adf
[publish binaries]
2024-02-03 11:27:36 -03:00
Joachim Kohlhammer
425db688da Qt6: Fixed a crash related to drag & drop (#4443)
* Qt6: Fixed a crash related to drag & drop

Qt6 changed the signature of the method mimeData in QTreeWidget and
QTableWidget from
Q...::mimeData(const QList<...>) const
to
Q...::mimeData(const QList<...>&) const
therefore ignoring local implementations and falling back to the
base-implementation with the default-serialization.
This PR supports both Qt5 and Qt6 by a selecting the matching signature
based on the Qt-version. Additionally the specifier override was
added to Q...::mimeData, Q...::mimeTypes and some drag&drop-related
event-handlers to prevent this kind of error for future versions.

* Fixed drag&drop for seasons

In Qt6, QList::count() returns q qsizetype instead of QT5s int,
therefore casting the number of seasons to int when serializing for
drag & drop
2024-02-02 20:17:32 -03:00
Alejandro Martinez
94d4bf7b9d QTextStream::readAll is too slow in Qt6 for rideDB
Using the QString from QByteArray constructor and
QFile::readAll is way faster on Qt6.x and similar on Qt5.15
2024-01-30 23:00:45 -03:00
Mark Liversedge
b3df633787 Drag and Drop Images onto a ride
.. drag and dropping images into a ride will store them
   in the media folder and add the filename to the "Images"
   metadata tag which contains a list separated by newlines.

   The metadata does not include the full path since we may
   change the path in future releases
2024-01-30 15:50:33 +00:00
Odald
50c305b7f2 bluetooth FTMS fix: if condition was always false, so no speed was reported... (#4440)
!FTMS_MORE_DATA == 0
flags & 0  == 0
-> if statement is always false
2024-01-29 10:17:16 -03:00
Alejandro Martinez
bd751988e3 Add Context help for Create/Edit User Metrics
Also updated to Favourites instead of Intervals/etc.
2024-01-27 17:19:32 -03:00
Mark Liversedge
809d72d000 MainWindow gets drag/drop from Overview
.. the chartspace widget used by the athlete view and
   overview chart now passes drag and drop events up to
   mainwindow so they can be processed
2024-01-27 10:27:39 +00:00
Alejandro Martinez
9119fe05e0 Fix crash when program is empty using Qt6
Failed QString[i] assert "i>=0 && i<size()"
Reported by Marcen at the users forum.
2024-01-25 17:31:42 -03:00
Alejandro Martinez
66ee605998 Recognize Joachim Kohlhammer
For his contributions with new features, bug fixes
and QT6 migration.
https://github.com/GoldenCheetah/GoldenCheetah/commits?author=thejockl
2024-01-25 09:13:53 -03:00
Alejandro Martinez
4224fd193c Qt6 count method has changed return type
From int to qsizetype, and that brakes LTM charts serialization.
Since curves count is a small number and to preserve backward
compatibility, convert count result to int.
2024-01-23 20:08:50 -03:00
Alejandro Martinez
b95d901ad3 RideItem - remove unused operator >
Fixes #4438
2024-01-23 20:00:30 -03:00
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