Motiv
Marvelous OTF2 Traces Interactive Visualizer
Loading...
Searching...
No Matches
Public Member Functions | List of all members
TimeUnitLabel Class Reference

TimeUnitLabel constructs a QLabel from a double value that represents a time point. More...

#include <TimeUnitLabel.hpp>

Inheritance diagram for TimeUnitLabel:
Inheritance graph
[legend]
Collaboration diagram for TimeUnitLabel:
Collaboration graph
[legend]

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ TimeUnitLabel()

TimeUnitLabel::TimeUnitLabel ( double  time,
QWidget *  parent = nullptr 
)
explicit
Parameters
timevalue to display in ns
parent

Definition at line 22 of file TimeUnitLabel.cpp.

Member Function Documentation

◆ getTime()

double TimeUnitLabel::getTime ( ) const
Returns
value in ns

Definition at line 33 of file TimeUnitLabel.cpp.

◆ setTime()

void TimeUnitLabel::setTime ( double  time)

Update value.

Parameters
timevalue to display in ns

Definition at line 26 of file TimeUnitLabel.cpp.

◆ updateView()

void TimeUnitLabel::updateView ( )

Updates the view to reflect the current state.

Definition at line 37 of file TimeUnitLabel.cpp.


The documentation for this class was generated from the following files: