| Wireshark 4.7.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
22 class 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
37 format_size_units_e mUnit;
38 QString mCustomUnit;
39 bool mLog;
40};
41
42#endif
QCPAxisTickerSi
Definition qcp_axis_ticker_si.h:23
str_util.h
format_size_units_e
format_size_units_e
Unit types used by format_size_wmem() for formatting size values.
Definition str_util.h:327
FORMAT_SIZE_UNIT_PACKETS
@ FORMAT_SIZE_UNIT_PACKETS
Definition str_util.h:339