CustomPlot: Fix build for Qt 6.0

This commit is contained in:
Nodir Temirkhodjaev 2020-08-18 15:25:59 +03:00
parent 26e965f5c5
commit 2bf9f01f1e
2 changed files with 16 additions and 0 deletions

View File

@ -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

View File

@ -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: