Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
qcp_axis_ticker_si.h
Go to the documentation of this file.
1
15#ifndef QCP_AXIS_TICKER_SI_H
16#define QCP_AXIS_TICKER_SI_H
17
18#include <ui/qt/widgets/qcustomplot.h>
19
20#include <wsutil/str_util.h>
21
22class QCPAxisTickerSi : public QCPAxisTickerLog
23{
24public:
25 explicit QCPAxisTickerSi(format_size_units_e unit = FORMAT_SIZE_UNIT_PACKETS, QString customUnit = QString(), bool log = false);
26
27 format_size_units_e getUnit() const { return mUnit; }
28 void setUnit(format_size_units_e unit);
29 void setCustomUnit(QString unit);
30 void setLog(bool log);
31
32protected:
33 virtual QString getTickLabel(double tick, const QLocale &locale, QChar formatChar, int precision) override;
34 virtual int getSubTickCount(double tickStep) override;
35 virtual QVector<double> createTickVector(double tickStep, const QCPRange &range) override;
36
38 QString mCustomUnit;
39 bool mLog;
40};
41
42#endif
Definition qcp_axis_ticker_si.h:23
format_size_units_e
Definition str_util.h:231
@ FORMAT_SIZE_UNIT_PACKETS
Definition str_util.h:243