mirror of
https://github.com/tnodir/fort
synced 2024-11-15 08:56:22 +00:00
CustomPlot: Fix build for Qt 6.0
This commit is contained in:
parent
26e965f5c5
commit
2bf9f01f1e
15
src/3rdparty/qcustomplot/qcustomplot.cpp
vendored
15
src/3rdparty/qcustomplot/qcustomplot.cpp
vendored
@ -6620,6 +6620,21 @@ void QCPAxisTickerText::addTick(double position, const QString &label)
|
||||
mTicks.insert(position, label);
|
||||
}
|
||||
|
||||
/*! \overload
|
||||
|
||||
Adds the provided \a ticks to the ones already existing. The map key of \a ticks corresponds to
|
||||
the axis coordinate, and the map value is the string that will appear as tick label.
|
||||
|
||||
An alternative to manipulate ticks is to directly access the internal storage with the \ref ticks
|
||||
getter.
|
||||
|
||||
\see addTick, setTicks, clear
|
||||
*/
|
||||
void QCPAxisTickerText::addTicks(const QMap<double, QString> &ticks)
|
||||
{
|
||||
mTicks.insert(ticks);
|
||||
}
|
||||
|
||||
/*! \overload
|
||||
|
||||
Adds the provided ticks to the ones already existing. The entries of \a positions correspond to
|
||||
|
1
src/3rdparty/qcustomplot/qcustomplot.h
vendored
1
src/3rdparty/qcustomplot/qcustomplot.h
vendored
@ -1757,6 +1757,7 @@ public:
|
||||
// non-virtual methods:
|
||||
void clear();
|
||||
void addTick(double position, const QString &label);
|
||||
void addTicks(const QMap<double, QString> &ticks);
|
||||
void addTicks(const QVector<double> &positions, const QVector<QString> &labels);
|
||||
|
||||
protected:
|
||||
|
Loading…
Reference in New Issue
Block a user