|
Motiv
Marvelous OTF2 Traces Interactive Visualizer
|
TimeUnitLabel constructs a QLabel from a double value that represents a time point. More...
#include <TimeUnitLabel.hpp>


Public Member Functions | |
| TimeUnitLabel (double time, QWidget *parent=nullptr) | |
| void | setTime (double time) |
| double | getTime () const |
| void | updateView () |
| Updates the view to reflect the current state. More... | |
TimeUnitLabel constructs a QLabel from a double value that represents a time point.
It will always show the greatest possible unit for witch the value is greater than zero.
Definition at line 30 of file TimeUnitLabel.hpp.
|
explicit |
| time | value to display in ns |
| parent |
Definition at line 22 of file TimeUnitLabel.cpp.
| double TimeUnitLabel::getTime | ( | ) | const |
Definition at line 33 of file TimeUnitLabel.cpp.
| void TimeUnitLabel::setTime | ( | double | time | ) |
Update value.
| time | value to display in ns |
Definition at line 26 of file TimeUnitLabel.cpp.
| void TimeUnitLabel::updateView | ( | ) |
Updates the view to reflect the current state.
Definition at line 37 of file TimeUnitLabel.cpp.