mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 00:28:42 +00:00
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
This commit is contained in:
@@ -151,8 +151,6 @@ GenericChart::addCurve(QString name, QVector<double> xseries, QVector<double> ys
|
||||
return true;
|
||||
}
|
||||
|
||||
#if QT_VERSION < 0x060000
|
||||
// In Qt 6, QStringList is a QVector<QString>, so we don't need an additional overload
|
||||
// helper for python - no aggregateby, no annotations
|
||||
bool
|
||||
GenericChart::addCurve(QString name, QVector<double> xseries, QVector<double> yseries, QStringList fseries, QString xname, QString yname,
|
||||
@@ -165,7 +163,6 @@ GenericChart::addCurve(QString name, QVector<double> xseries, QVector<double> ys
|
||||
opengl, legend, datalabels, fill, RideMetric::Average, QList<GenericAnnotationInfo>());
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
// configure axis, after curves added
|
||||
bool
|
||||
|
||||
@@ -319,14 +319,10 @@ class GenericChart : public QWidget {
|
||||
int line, int symbol, int size, QString color, int opacity, bool opengl, bool legend, bool datalabels,
|
||||
bool fill, RideMetric::MetricType mtype, QList<GenericAnnotationInfo>annotations);
|
||||
|
||||
#if QT_VERSION < 0x060000
|
||||
// In Qt 6, QStringList is a QVector<QString>, so we don't need an additional overload
|
||||
|
||||
// helper for Python and R charts fseries is a stringlist
|
||||
bool addCurve(QString name, QVector<double> xseries, QVector<double> yseries, QStringList fseries, QString xname, QString yname,
|
||||
QStringList labels, QStringList colors,
|
||||
int line, int symbol, int size, QString color, int opacity, bool opengl, bool legend, bool datalabels, bool fill);
|
||||
#endif
|
||||
|
||||
// configure axis, after curves added
|
||||
bool configureAxis(QString name, bool visible, int align, double min, double max,
|
||||
|
||||
Reference in New Issue
Block a user