Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
qcp_axis_ticker_elided.h
Go to the documentation of this file.
1
16#ifndef QCP_AXIS_TICKER_ELIDED_H
17#define QCP_AXIS_TICKER_ELIDED_H
18
19#include <ui/qt/widgets/qcustomplot.h>
20
26class QCPAxisTickerElided : public QCPAxisTickerText
27{
28public:
33 explicit QCPAxisTickerElided(QCPAxis *parent);
34
44 static QCP::MarginSide axisTypeToMarginSide(const QCPAxis::AxisType axisType);
45
52 QString elidedText(const QString &text);
53
54protected:
66 virtual QString getTickLabel(double tick, const QLocale &locale, QChar formatChar, int precision) override;
67
68private:
69 QCPAxis *mParent;
70};
71
72#endif
QCPAxisTickerText specialisation that elides tick labels to fit within the available axis space,...
Definition qcp_axis_ticker_elided.h:27
QString elidedText(const QString &text)
Returns text elided to fit within the available tick-label width of the parent axis,...
Definition qcp_axis_ticker_elided.cpp:40
static QCP::MarginSide axisTypeToMarginSide(const QCPAxis::AxisType axisType)
Converts a QCPAxis AxisType to its corresponding QCP::MarginSide.
Definition qcp_axis_ticker_elided.cpp:25
virtual QString getTickLabel(double tick, const QLocale &locale, QChar formatChar, int precision) override
Returns the (possibly elided) label string for the tick at tick.
Definition qcp_axis_ticker_elided.cpp:71